<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>perl58delta - what is new for perl v5.8.0 - Perldoc Browser</title>
    <link rel="search" href="https://perldoc.perl.org/opensearch.xml" type="application/opensearchdescription+xml" title="Perldoc Browser">
    <link rel="canonical" href="https://perldoc.perl.org/perl58delta">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/styles/stackoverflow-light.min.css" integrity="sha512-cG1IdFxqipi3gqLmksLtuk13C+hBa57a6zpWxMeoY3Q9O6ooFxq50DayCdm0QrDgZjMUn23z/0PMZlgft7Yp5Q==" crossorigin="anonymous" />
    <style>
      body {
        background: #f4f4f5;
        color: #020202;
      }
      .navbar-dark {
        background-image: -webkit-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: -o-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: linear-gradient(to bottom, #005f85 0, #002e49 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff005f85', endColorstr='#ff002e49', GradientType=0);
        background-repeat: repeat-x;
      }
      .navbar-dark .navbar-nav .nav-link,
      .navbar-dark .navbar-nav .nav-link:focus { color: #fff }
      .navbar-dark .navbar-nav .nav-link:hover { color: #ffef68 }
      #wrapperlicious {
        margin: 0 auto;
        font: 0.9em 'Helvetica Neue', Helvetica, sans-serif;
        font-weight: normal;
        line-height: 1.5em;
        margin: 0;
        padding: 0;
      }
      #wrapperlicious h1 { font-size: 1.5em }
      #wrapperlicious h2 { font-size: 1.3em }
      #wrapperlicious h3 { font-size: 1.1em }
      #wrapperlicious h4 { font-size: 0.9em }
      #wrapperlicious h1, #wrapperlicious h2, #wrapperlicious h3,
      #wrapperlicious h4, #wrapperlicious dt {
        color: #020202;
        margin-top: 1em;
        margin-bottom: 1em;
        position: relative;
        font-weight: bold;
      }
      #wrapperlicious a { color: inherit; text-decoration: underline }
      #wrapperlicious #toc { text-decoration: none }
      #wrapperlicious a:hover { color: #2a2a2a }
      #wrapperlicious a img { border: 0 }
      #wrapperlicious :not(pre) > code {
        color: inherit;
        background-color: rgba(0, 0, 0, 0.04);
        border-radius: 3px;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        padding: 0.3em;
      }
      #wrapperlicious dd {
        margin: 0;
        margin-left: 2em;
      }
      #wrapperlicious dt {
        color: #2a2a2a;
        font-weight: bold;
        margin-left: 0.9em;
      }
      #wrapperlicious p {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious li > p {
        margin-bottom: 0;
        margin-top: 0;
      }
      #wrapperlicious pre {
        border: 1px solid #c1c1c1;
        border-radius: 3px;
        font: 100% Consolas, Menlo, Monaco, monospace;
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious pre > code {
        display: block;
        background-color: #f6f6f6;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        line-height: 1.5em;
        text-align: left;
        white-space: pre;
        padding: 1em;
      }
      #wrapperlicious dl, #wrapperlicious ol, #wrapperlicious ul {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious ul {
        list-style-type: square;
      }
      #wrapperlicious ul ul {
        margin-bottom: 0px;
        margin-top: 0px;
      }
      #footer {
        font-size: 0.8em;
        padding-top: 0.5em;
        text-align: center;
      }
      #more {
        display: inline;
        font-size: 0.8em;
      }
      #perldocdiv {
        background-color: #fff;
        border: 1px solid #c1c1c1;
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
        margin-left: auto;
        margin-right: auto;
        padding: 3em;
        padding-top: 1em;
        max-width: 960px;
      }
      #moduleversion { float: right }
      #wrapperlicious .leading-notice {
        font-style: italic;
        padding-left: 1em;
        margin-top: 1em;
        margin-bottom: 1em;
      }
      #wrapperlicious .permalink {
        display: none;
        left: -0.75em;
        position: absolute;
        padding-right: 0.25em;
        text-decoration: none;
      }
      #wrapperlicious h1:hover .permalink, #wrapperlicious h2:hover .permalink,
      #wrapperlicious h3:hover .permalink, #wrapperlicious h4:hover .permalink,
      #wrapperlicious dt:hover .permalink {
        display: block;
      }
    </style>
    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-KVNWBNT5FB"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());

      gtag('config', 'G-KVNWBNT5FB');
      gtag('config', 'UA-50555-3');
    </script>
  </head>
  <body>
    <nav class="navbar navbar-expand-md navbar-dark bg-dark justify-content-between">
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>
  <a class="navbar-brand" href="https://perldoc.perl.org/">Perldoc Browser</a>
  <div class="collapse navbar-collapse" id="navbarNav">
    <ul class="navbar-nav mr-auto">
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perl58delta.html#" id="dropdownlink-stable" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">5.35.0</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-stable">
          <a class="dropdown-item" href="https://perldoc.perl.org/perl58delta">Latest</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.2/perl58delta">5.38.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.1/perl58delta">5.38.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0/perl58delta">5.38.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.3/perl58delta">5.36.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.2/perl58delta">5.36.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.1/perl58delta">5.36.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.0/perl58delta">5.36.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.3/perl58delta">5.34.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.2/perl58delta">5.34.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.1/perl58delta">5.34.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.0/perl58delta">5.34.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.1/perl58delta">5.32.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.0/perl58delta">5.32.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.3/perl58delta">5.30.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.2/perl58delta">5.30.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.1/perl58delta">5.30.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.0/perl58delta">5.30.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.3/perl58delta">5.28.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.2/perl58delta">5.28.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.1/perl58delta">5.28.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.0/perl58delta">5.28.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.3/perl58delta">5.26.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.2/perl58delta">5.26.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.1/perl58delta">5.26.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.0/perl58delta">5.26.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.4/perl58delta">5.24.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.3/perl58delta">5.24.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.2/perl58delta">5.24.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.1/perl58delta">5.24.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.0/perl58delta">5.24.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.4/perl58delta">5.22.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.3/perl58delta">5.22.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.2/perl58delta">5.22.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.1/perl58delta">5.22.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.0/perl58delta">5.22.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.3/perl58delta">5.20.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.2/perl58delta">5.20.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.1/perl58delta">5.20.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.0/perl58delta">5.20.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.4/perl58delta">5.18.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.3/perl58delta">5.18.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.2/perl58delta">5.18.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.1/perl58delta">5.18.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.0/perl58delta">5.18.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.3/perl58delta">5.16.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.2/perl58delta">5.16.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.1/perl58delta">5.16.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.0/perl58delta">5.16.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.4/perl58delta">5.14.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.3/perl58delta">5.14.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.2/perl58delta">5.14.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.1/perl58delta">5.14.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.0/perl58delta">5.14.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.5/perl58delta">5.12.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.4/perl58delta">5.12.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.3/perl58delta">5.12.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.2/perl58delta">5.12.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.1/perl58delta">5.12.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.0/perl58delta">5.12.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.1/perl58delta">5.10.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.0/perl58delta">5.10.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.9/perl58delta">5.8.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.8/perl58delta">5.8.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.7/perl58delta">5.8.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.6/perl58delta">5.8.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.5/perl58delta">5.8.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.4/perl58delta">5.8.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.3/perl58delta">5.8.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.2/perl58delta">5.8.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.1/perl58delta">5.8.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.0/perl58delta">5.8.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.2/perl58delta">5.6.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.1/perl58delta">5.6.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.0/perl58delta">5.6.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_04/perl58delta">5.005_04</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_03/perl58delta">5.005_03</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_02/perl58delta">5.005_02</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_01/perl58delta">5.005_01</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005/perl58delta">5.005</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perl58delta.html#" id="dropdownlink-dev" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Dev</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-dev">
          <a class="dropdown-item" href="https://perldoc.perl.org/blead/perl58delta">blead</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.6/perl58delta">5.39.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.5/perl58delta">5.39.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.4/perl58delta">5.39.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.3/perl58delta">5.39.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.2/perl58delta">5.39.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.1/perl58delta">5.39.1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC2/perl58delta">5.38.0-RC2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC1/perl58delta">5.38.0-RC1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.11/perl58delta">5.37.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.10/perl58delta">5.37.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.9/perl58delta">5.37.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.8/perl58delta">5.37.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.7/perl58delta">5.37.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.6/perl58delta">5.37.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.5/perl58delta">5.37.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.4/perl58delta">5.37.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.3/perl58delta">5.37.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.2/perl58delta">5.37.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.1/perl58delta">5.37.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.0/perl58delta">5.37.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.11/perl58delta">5.35.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.10/perl58delta">5.35.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.9/perl58delta">5.35.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.8/perl58delta">5.35.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.7/perl58delta">5.35.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.6/perl58delta">5.35.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.5/perl58delta">5.35.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.4/perl58delta">5.35.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.3/perl58delta">5.35.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.2/perl58delta">5.35.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.1/perl58delta">5.35.1</a>
          <a class="dropdown-item active" href="perl58delta.html">5.35.0</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perl58delta.html#" id="dropdownlink-nav" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Documentation</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-nav">
          <a class="dropdown-item" href="perl.html">Perl</a>
          <a class="dropdown-item" href="perlintro.html">Intro</a>
          <a class="dropdown-item" href="perl.html#Tutorials">Tutorials</a>
          <a class="dropdown-item" href="perlfaq.html">FAQs</a>
          <a class="dropdown-item" href="perl.html#Reference-Manual">Reference</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlop.html">Operators</a>
          <a class="dropdown-item" href="functions.html">Functions</a>
          <a class="dropdown-item" href="variables.html">Variables</a>
          <a class="dropdown-item" href="modules.html">Modules</a>
          <a class="dropdown-item" href="perlutil.html">Utilities</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlcommunity.html">Community</a>
          <a class="dropdown-item" href="perlhist.html">History</a>
        </div>
      </li>
    </ul>
    <ul class="navbar-nav">
      <script>
        function set_expand (expand) {
          var perldocdiv = document.getElementById('perldocdiv');
          var width = window.getComputedStyle(perldocdiv).getPropertyValue('max-width');
          var expanded = (width == '' || width == 'none') ? true : false;
          if (expand === null) {
            expand = !expanded;
          }
          if ((expand && !expanded) || (!expand && expanded)) {
            perldocdiv.style.setProperty('max-width', expand ? 'none' : '960px');
            var button_classlist = document.getElementById('content-expand-button').classList;
            if (expand) {
              button_classlist.add('btn-light');
              button_classlist.remove('btn-outline-light');
            } else {
              button_classlist.add('btn-outline-light');
              button_classlist.remove('btn-light');
            }
          }
          return expand;
        }
        function toggle_expand () {
          var expand = set_expand(null);
          document.cookie = 'perldoc_expand=' + (expand ? 1 : 0) + '; path=/; expires=Tue, 19 Jan 2038 03:14:07 UTC';
        }
        function read_expand () {
          return document.cookie.split(';').some(function (item) { return item.indexOf('perldoc_expand=1') >= 0 });
        }
        if (document.readyState === 'loading') {
          document.addEventListener('DOMContentLoaded', function () {
            if (read_expand()) {
              set_expand(true);
            }
          });
        } else if (read_expand()) {
          set_expand(true);
        }
      </script>
      <button id="content-expand-button" type="button" class="btn btn-outline-light d-none d-lg-inline-block mr-2" onclick="toggle_expand()">Expand</button>
    <ul>
    <form class="form-inline" method="get" action="https://perldoc.perl.org/5.35.0/search">
      <input class="form-control mr-3" type="search" name="q" placeholder="Search" aria-label="Search">
    </form>
  </div>
</nav>

    <div id="wrapperlicious" class="container-fluid">
      <div id="perldocdiv">
        <div id="links">
          <a href="perl58delta.html">perl58delta</a>
          <div id="more">
            (<a href="perl58delta.txt">source</a>,
            <a href="https://metacpan.org/pod/perl58delta">CPAN</a>)
          </div>
        </div>
        <div class="leading-notice">
          You are viewing the version of this documentation from Perl 5.35.0.
            This is a development version of Perl.
        </div>
        <h1><a id="toc">CONTENTS</a></h1>
                  <ul>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#NAME">NAME</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#DESCRIPTION">DESCRIPTION</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#Highlights-In-5.8.0">Highlights In 5.8.0</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#Incompatible-Changes">Incompatible Changes</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#Binary-Incompatibility">Binary Incompatibility</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#64-bit-platforms-and-malloc">64-bit platforms and malloc</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#AIX-Dynaloading">AIX Dynaloading</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#Attributes-for-my-variables-now-handled-at-run-time">Attributes for my variables now handled at run-time</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#Socket-Extension-Dynamic-in-VMS">Socket Extension Dynamic in VMS</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#IEEE-format-Floating-Point-Default-on-OpenVMS-Alpha">IEEE-format Floating Point Default on OpenVMS Alpha</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#New-Unicode-Semantics-(no-more-use-utf8,-almost)">New Unicode Semantics (no more use utf8, almost)</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#New-Unicode-Properties">New Unicode Properties</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#REF(...)-Instead-Of-SCALAR(...)">REF(...) Instead Of SCALAR(...)</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#pack/unpack-D/F-recycled">pack/unpack D/F recycled</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#glob()-now-returns-filenames-in-alphabetical-order">glob() now returns filenames in alphabetical order</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#Deprecations">Deprecations</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#Core-Enhancements">Core Enhancements</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#Unicode-Overhaul">Unicode Overhaul</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#PerlIO-is-Now-The-Default">PerlIO is Now The Default</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#ithreads">ithreads</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#Restricted-Hashes">Restricted Hashes</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#Safe-Signals">Safe Signals</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#Understanding-of-Numbers">Understanding of Numbers</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#Arrays-now-always-interpolate-into-double-quoted-strings-%5B561%5D">Arrays now always interpolate into double-quoted strings [561]</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#Miscellaneous-Changes">Miscellaneous Changes</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#Modules-and-Pragmata">Modules and Pragmata</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#New-Modules-and-Pragmata">New Modules and Pragmata</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#Updated-And-Improved-Modules-and-Pragmata">Updated And Improved Modules and Pragmata</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#Utility-Changes">Utility Changes</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#New-Documentation">New Documentation</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#Performance-Enhancements">Performance Enhancements</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#Installation-and-Configuration-Improvements">Installation and Configuration Improvements</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#Generic-Improvements">Generic Improvements</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#New-Or-Improved-Platforms">New Or Improved Platforms</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#Selected-Bug-Fixes">Selected Bug Fixes</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#Platform-Specific-Changes-and-Fixes">Platform Specific Changes and Fixes</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#New-or-Changed-Diagnostics">New or Changed Diagnostics</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#Changed-Internals">Changed Internals</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#Security-Vulnerability-Closed-%5B561%5D">Security Vulnerability Closed [561]</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#New-Tests">New Tests</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#Known-Problems">Known Problems</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#The-Compiler-Suite-Is-Still-Very-Experimental">The Compiler Suite Is Still Very Experimental</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#Localising-Tied-Arrays-and-Hashes-Is-Broken">Localising Tied Arrays and Hashes Is Broken</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#Building-Extensions-Can-Fail-Because-Of-Largefiles">Building Extensions Can Fail Because Of Largefiles</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#Modifying-$_-Inside-for(..)">Modifying $_ Inside for(..)</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#mod_perl-1.26-Doesn&#39;t-Build-With-Threaded-Perl">mod_perl 1.26 Doesn&#39;t Build With Threaded Perl</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#lib/ftmp-security-tests-warn-&#39;system-possibly-insecure&#39;">lib/ftmp-security tests warn &#39;system possibly insecure&#39;</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#libwww-perl-(LWP)-fails-base/date-%2351">libwww-perl (LWP) fails base/date #51</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#PDL-failing-some-tests">PDL failing some tests</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#Perl_get_sv">Perl_get_sv</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#Self-tying-Problems">Self-tying Problems</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#ext/threads/t/libc">ext/threads/t/libc</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#Failure-of-Thread-(5.005-style)-tests">Failure of Thread (5.005-style) tests</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#Timing-problems">Timing problems</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#Tied/Magical-Array/Hash-Elements-Do-Not-Autovivify">Tied/Magical Array/Hash Elements Do Not Autovivify</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#Unicode-in-package/class-and-subroutine-names-does-not-work">Unicode in package/class and subroutine names does not work</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#Platform-Specific-Problems">Platform Specific Problems</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#AIX">AIX</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#Alpha-systems-with-old-gccs-fail-several-tests">Alpha systems with old gccs fail several tests</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#AmigaOS">AmigaOS</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#BeOS">BeOS</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#Cygwin-%22unable-to-remap%22">Cygwin &quot;unable to remap&quot;</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#Cygwin-ndbm-tests-fail-on-FAT">Cygwin ndbm tests fail on FAT</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#DJGPP-Failures">DJGPP Failures</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#FreeBSD-built-with-ithreads-coredumps-reading-large-directories">FreeBSD built with ithreads coredumps reading large directories</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#FreeBSD-Failing-locale-Test-117-For-ISO-8859-15-Locales">FreeBSD Failing locale Test 117 For ISO 8859-15 Locales</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#IRIX-fails-ext/List/Util/t/shuffle.t-or-Digest::MD5">IRIX fails ext/List/Util/t/shuffle.t or Digest::MD5</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#HP-UX-lib/posix-Subtest-9-Fails-When-LP64-Configured">HP-UX lib/posix Subtest 9 Fails When LP64-Configured</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#Linux-with-glibc-2.2.5-fails-t/op/int-subtest-%236-with-Duse64bitint">Linux with glibc 2.2.5 fails t/op/int subtest #6 with -Duse64bitint</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#Linux-With-Sfio-Fails-op/misc-Test-48">Linux With Sfio Fails op/misc Test 48</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#Mac-OS-X">Mac OS X</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#Mac-OS-X-dyld-undefined-symbols">Mac OS X dyld undefined symbols</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#OS/2-Test-Failures">OS/2 Test Failures</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#op/sprintf-tests-91,-129,-and-130">op/sprintf tests 91, 129, and 130</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#SCO">SCO</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#Solaris-2.5">Solaris 2.5</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#Solaris-x86-Fails-Tests-With-Duse64bitint">Solaris x86 Fails Tests With -Duse64bitint</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#SUPER-UX-(NEC-SX)">SUPER-UX (NEC SX)</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#Term::ReadKey-not-working-on-Win32">Term::ReadKey not working on Win32</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#UNICOS/mk">UNICOS/mk</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#UTS">UTS</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#VOS-(Stratus)">VOS (Stratus)</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#VMS">VMS</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#Win32">Win32</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#XML::Parser-not-working">XML::Parser not working</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#z/OS-(OS/390)">z/OS (OS/390)</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#Unicode-Support-on-EBCDIC-Still-Spotty">Unicode Support on EBCDIC Still Spotty</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#Seen-In-Perl-5.7-But-Gone-Now">Seen In Perl 5.7 But Gone Now</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#Reporting-Bugs">Reporting Bugs</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#SEE-ALSO">SEE ALSO</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl58delta.html#HISTORY">HISTORY</a>
              </li>
          </ul>

      <h1 id="NAME"><a class="permalink" href="perl58delta.html#NAME">#</a>NAME</h1>

<p>perl58delta - what is new for perl v5.8.0</p>

<h1 id="DESCRIPTION"><a class="permalink" href="perl58delta.html#DESCRIPTION">#</a>DESCRIPTION</h1>

<p>This document describes differences between the 5.6.0 release and the 5.8.0 release.</p>

<p>Many of the bug fixes in 5.8.0 were already seen in the 5.6.1 maintenance release since the two releases were kept closely coordinated (while 5.8.0 was still called 5.7.something).</p>

<p>Changes that were integrated into the 5.6.1 release are marked <code>[561]</code>. Many of these changes have been further developed since 5.6.1 was released, those are marked <code>[561+]</code>.</p>

<p>You can see the list of changes in the 5.6.1 release (both from the 5.005_03 release and the 5.6.0 release) by reading <a href="perl561delta.html">perl561delta</a>.</p>

<h1 id="Highlights-In-5.8.0"><a class="permalink" href="perl58delta.html#Highlights-In-5.8.0">#</a><a id="Highlights"></a>Highlights In 5.8.0</h1>

<ul>

<li><p>Better Unicode support</p>

</li>
<li><p>New IO Implementation</p>

</li>
<li><p>New Thread Implementation</p>

</li>
<li><p>Better Numeric Accuracy</p>

</li>
<li><p>Safe Signals</p>

</li>
<li><p>Many New Modules</p>

</li>
<li><p>More Extensive Regression Testing</p>

</li>
</ul>

<h1 id="Incompatible-Changes"><a class="permalink" href="perl58delta.html#Incompatible-Changes">#</a><a id="Incompatible"></a>Incompatible Changes</h1>

<h2 id="Binary-Incompatibility"><a class="permalink" href="perl58delta.html#Binary-Incompatibility">#</a><a id="Binary"></a>Binary Incompatibility</h2>

<p><b>Perl 5.8 is not binary compatible with earlier releases of Perl.</b></p>

<p><b>You have to recompile your XS modules.</b></p>

<p>(Pure Perl modules should continue to work.)</p>

<p>The major reason for the discontinuity is the new IO architecture called PerlIO. PerlIO is the default configuration because without it many new features of Perl 5.8 cannot be used. In other words: you just have to recompile your modules containing XS code, sorry about that.</p>

<p>In future releases of Perl, non-PerlIO aware XS modules may become completely unsupported. This shouldn&#39;t be too difficult for module authors, however: PerlIO has been designed as a drop-in replacement (at the source code level) for the stdio interface.</p>

<p>Depending on your platform, there are also other reasons why we decided to break binary compatibility, please read on.</p>

<h2 id="64-bit-platforms-and-malloc"><a class="permalink" href="perl58delta.html#64-bit-platforms-and-malloc">#</a><a id="64"></a><a id="bit-platforms-and-malloc"></a>64-bit platforms and malloc</h2>

<p>If your pointers are 64 bits wide, the Perl malloc is no longer being used because it does not work well with 8-byte pointers. Also, usually the system mallocs on such platforms are much better optimized for such large memory models than the Perl malloc. Some memory-hungry Perl applications like the PDL don&#39;t work well with Perl&#39;s malloc. Finally, other applications than Perl (such as mod_perl) tend to prefer the system malloc. Such platforms include Alpha and 64-bit HPPA, MIPS, PPC, and Sparc.</p>

<h2 id="AIX-Dynaloading"><a class="permalink" href="perl58delta.html#AIX-Dynaloading">#</a><a id="AIX1"></a>AIX Dynaloading</h2>

<p>The AIX dynaloading now uses in AIX releases 4.3 and newer the native dlopen interface of AIX instead of the old emulated interface. This change will probably break backward compatibility with compiled modules. The change was made to make Perl more compliant with other applications like mod_perl which are using the AIX native interface.</p>

<h2 id="Attributes-for-my-variables-now-handled-at-run-time"><a class="permalink" href="perl58delta.html#Attributes-for-my-variables-now-handled-at-run-time">#</a><a id="Attributes"></a>Attributes for <code>my</code> variables now handled at run-time</h2>

<p>The <code>my EXPR : ATTRS</code> syntax now applies variable attributes at run-time. (Subroutine and <code>our</code> variables still get attributes applied at compile-time.) See <a href="attributes.html">attributes</a> for additional details. In particular, however, this allows variable attributes to be useful for <code>tie</code> interfaces, which was a deficiency of earlier releases. Note that the new semantics doesn&#39;t work with the Attribute::Handlers module (as of version 0.76).</p>

<h2 id="Socket-Extension-Dynamic-in-VMS"><a class="permalink" href="perl58delta.html#Socket-Extension-Dynamic-in-VMS">#</a><a id="Socket"></a>Socket Extension Dynamic in VMS</h2>

<p>The Socket extension is now dynamically loaded instead of being statically built in. This may or may not be a problem with ancient TCP/IP stacks of VMS: we do not know since we weren&#39;t able to test Perl in such configurations.</p>

<h2 id="IEEE-format-Floating-Point-Default-on-OpenVMS-Alpha"><a class="permalink" href="perl58delta.html#IEEE-format-Floating-Point-Default-on-OpenVMS-Alpha">#</a><a id="IEEE"></a>IEEE-format Floating Point Default on OpenVMS Alpha</h2>

<p>Perl now uses IEEE format (T_FLOAT) as the default internal floating point format on OpenVMS Alpha, potentially breaking binary compatibility with external libraries or existing data. G_FLOAT is still available as a configuration option. The default on VAX (D_FLOAT) has not changed.</p>

<h2 id="New-Unicode-Semantics-(no-more-use-utf8,-almost)"><a class="permalink" href="perl58delta.html#New-Unicode-Semantics-(no-more-use-utf8,-almost)">#</a><a id="New"></a><a id="New-Unicode-Semantics-no-more-use-utf8-almost"></a>New Unicode Semantics (no more <code>use utf8</code>, almost)</h2>

<p>Previously in Perl 5.6 to use Unicode one would say &quot;use utf8&quot; and then the operations (like string concatenation) were Unicode-aware in that lexical scope.</p>

<p>This was found to be an inconvenient interface, and in Perl 5.8 the Unicode model has completely changed: now the &quot;Unicodeness&quot; is bound to the data itself, and for most of the time &quot;use utf8&quot; is not needed at all. The only remaining use of &quot;use utf8&quot; is when the Perl script itself has been written in the UTF-8 encoding of Unicode. (UTF-8 has not been made the default since there are many Perl scripts out there that are using various national eight-bit character sets, which would be illegal in UTF-8.)</p>

<p>See <a href="perluniintro.html">perluniintro</a> for the explanation of the current model, and <a href="utf8.html">utf8</a> for the current use of the utf8 pragma.</p>

<h2 id="New-Unicode-Properties"><a class="permalink" href="perl58delta.html#New-Unicode-Properties">#</a><a id="New1"></a>New Unicode Properties</h2>

<p>Unicode <i>scripts</i> are now supported. Scripts are similar to (and superior to) Unicode <i>blocks</i>. The difference between scripts and blocks is that scripts are the glyphs used by a language or a group of languages, while the blocks are more artificial groupings of (mostly) 256 characters based on the Unicode numbering.</p>

<p>In general, scripts are more inclusive, but not universally so. For example, while the script <code>Latin</code> includes all the Latin characters and their various diacritic-adorned versions, it does not include the various punctuation or digits (since they are not solely <code>Latin</code>).</p>

<p>A number of other properties are now supported, including <code>\p{L&amp;}</code>, <code>\p{Any}</code> <code>\p{Assigned}</code>, <code>\p{Unassigned}</code>, <code>\p{Blank}</code> [561] and <code>\p{SpacePerl}</code> [561] (along with their <code>\P{...}</code> versions, of course). See <a href="perlunicode.html">perlunicode</a> for details, and more additions.</p>

<p>The <code>In</code> or <code>Is</code> prefix to names used with the <code>\p{...}</code> and <code>\P{...}</code> are now almost always optional. The only exception is that a <code>In</code> prefix is required to signify a Unicode block when a block name conflicts with a script name. For example, <code>\p{Tibetan}</code> refers to the script, while <code>\p{InTibetan}</code> refers to the block. When there is no name conflict, you can omit the <code>In</code> from the block name (e.g. <code>\p{BraillePatterns}</code>), but to be safe, it&#39;s probably best to always use the <code>In</code>).</p>

<h2 id="REF(...)-Instead-Of-SCALAR(...)"><a class="permalink" href="perl58delta.html#REF(...)-Instead-Of-SCALAR(...)">#</a><a id="REF"></a><a id="REF-...-Instead-Of-SCALAR"></a>REF(...) Instead Of SCALAR(...)</h2>

<p>A reference to a reference now stringifies as &quot;REF(0x81485ec)&quot; instead of &quot;SCALAR(0x81485ec)&quot; in order to be more consistent with the return value of ref().</p>

<h2 id="pack/unpack-D/F-recycled"><a class="permalink" href="perl58delta.html#pack/unpack-D/F-recycled">#</a><a id="pack"></a><a id="pack-unpack-D-F-recycled"></a>pack/unpack D/F recycled</h2>

<p>The undocumented pack/unpack template letters D/F have been recycled for better use: now they stand for long double (if supported by the platform) and NV (Perl internal floating point type). (They used to be aliases for d/f, but you never knew that.)</p>

<h2 id="glob()-now-returns-filenames-in-alphabetical-order"><a class="permalink" href="perl58delta.html#glob()-now-returns-filenames-in-alphabetical-order">#</a><a id="glob"></a><a id="glob-now-returns-filenames-in-alphabetical-order"></a>glob() now returns filenames in alphabetical order</h2>

<p>The list of filenames from glob() (or &lt;...&gt;) is now by default sorted alphabetically to be csh-compliant (which is what happened before in most Unix platforms). (bsd_glob() does still sort platform natively, ASCII or EBCDIC, unless GLOB_ALPHASORT is specified.) [561]</p>

<h2 id="Deprecations"><a class="permalink" href="perl58delta.html#Deprecations">#</a>Deprecations</h2>

<ul>

<li><p>The semantics of bless(REF, REF) were unclear and until someone proves it to make some sense, it is forbidden.</p>

</li>
<li><p>The obsolete chat2 library that should never have been allowed to escape the laboratory has been decommissioned.</p>

</li>
<li><p>Using chdir(&quot;&quot;) or chdir(undef) instead of explicit chdir() is doubtful. A failure (think chdir(some_function()) can lead into unintended chdir() to the home directory, therefore this behaviour is deprecated.</p>

</li>
<li><p>The builtin dump() function has probably outlived most of its usefulness. The core-dumping functionality will remain in future available as an explicit call to <code>CORE::dump()</code>, but in future releases the behaviour of an unqualified <code>dump()</code> call may change.</p>

</li>
<li><p>The very dusty examples in the eg/ directory have been removed. Suggestions for new shiny examples welcome but the main issue is that the examples need to be documented, tested and (most importantly) maintained.</p>

</li>
<li><p>The (bogus) escape sequences \8 and \9 now give an optional warning (&quot;Unrecognized escape passed through&quot;). There is no need to \-escape any <code>\w</code> character.</p>

</li>
<li><p>The *glob{FILEHANDLE} is deprecated, use *glob{IO} instead.</p>

</li>
<li><p>The <code>package;</code> syntax (<code>package</code> without an argument) has been deprecated. Its semantics were never that clear and its implementation even less so. If you have used that feature to disallow all but fully qualified variables, <code>use strict;</code> instead.</p>

</li>
<li><p>The unimplemented POSIX regex features [[.cc.]] and [[=c=]] are still recognised but now cause fatal errors. The previous behaviour of ignoring them by default and warning if requested was unacceptable since it, in a way, falsely promised that the features could be used.</p>

</li>
<li><p>In future releases, non-PerlIO aware XS modules may become completely unsupported. Since PerlIO is a drop-in replacement for stdio at the source code level, this shouldn&#39;t be that drastic a change.</p>

</li>
<li><p>Previous versions of perl and some readings of some sections of Camel III implied that the <code>:raw</code> &quot;discipline&quot; was the inverse of <code>:crlf</code>. Turning off &quot;clrfness&quot; is no longer enough to make a stream truly binary. So the PerlIO <code>:raw</code> layer (or &quot;discipline&quot;, to use the Camel book&#39;s older terminology) is now formally defined as being equivalent to binmode(FH) - which is in turn defined as doing whatever is necessary to pass each byte as-is without any translation. In particular binmode(FH) - and hence <code>:raw</code> - will now turn off both CRLF and UTF-8 translation and remove other layers (e.g. :encoding()) which would modify byte stream.</p>

</li>
<li><p>The current user-visible implementation of pseudo-hashes (the weird use of the first array element) is deprecated starting from Perl 5.8.0 and will be removed in Perl 5.10.0, and the feature will be implemented differently. Not only is the current interface rather ugly, but the current implementation slows down normal array and hash use quite noticeably. The <code>fields</code> pragma interface will remain available. The <i>restricted hashes</i> interface is expected to be the replacement interface (see <a href="./Hash::Util.html">Hash::Util</a>). If your existing programs depends on the underlying implementation, consider using <a href="./Class::PseudoHash.html">Class::PseudoHash</a> from CPAN.</p>

</li>
<li><p>The syntaxes <code>@a-&gt;[...]</code> and <code>%h-&gt;{...}</code> have now been deprecated.</p>

</li>
<li><p>After years of trying, suidperl is considered to be too complex to ever be considered truly secure. The suidperl functionality is likely to be removed in a future release.</p>

</li>
<li><p>The 5.005 threads model (module <code>Thread</code>) is deprecated and expected to be removed in Perl 5.10. Multithreaded code should be migrated to the new ithreads model (see <a href="threads.html">threads</a>, <a href="./threads::shared.html">threads::shared</a> and <a href="perlthrtut.html">perlthrtut</a>).</p>

</li>
<li><p>The long deprecated uppercase aliases for the string comparison operators (EQ, NE, LT, LE, GE, GT) have now been removed.</p>

</li>
<li><p>The tr///C and tr///U features have been removed and will not return; the interface was a mistake. Sorry about that. For similar functionality, see pack(&#39;U0&#39;, ...) and pack(&#39;C0&#39;, ...). [561]</p>

</li>
<li><p>Earlier Perls treated &quot;sub foo (@bar)&quot; as equivalent to &quot;sub foo (@)&quot;. The prototypes are now checked better at compile-time for invalid syntax. An optional warning is generated (&quot;Illegal character in prototype...&quot;) but this may be upgraded to a fatal error in a future release.</p>

</li>
<li><p>The <code>exec LIST</code> and <code>system LIST</code> operations now produce warnings on tainted data and in some future release they will produce fatal errors.</p>

</li>
<li><p>The existing behaviour when localising tied arrays and hashes is wrong, and will be changed in a future release, so do not rely on the existing behaviour. See <a href="perl58delta.html#Localising-Tied-Arrays-and-Hashes-Is-Broken">&quot;Localising Tied Arrays and Hashes Is Broken&quot;</a>.</p>

</li>
</ul>

<h1 id="Core-Enhancements"><a class="permalink" href="perl58delta.html#Core-Enhancements">#</a><a id="Core"></a>Core Enhancements</h1>

<h2 id="Unicode-Overhaul"><a class="permalink" href="perl58delta.html#Unicode-Overhaul">#</a><a id="Unicode"></a>Unicode Overhaul</h2>

<p>Unicode in general should be now much more usable than in Perl 5.6.0 (or even in 5.6.1). Unicode can be used in hash keys, Unicode in regular expressions should work now, Unicode in tr/// should work now, Unicode in I/O should work now. See <a href="perluniintro.html">perluniintro</a> for introduction and <a href="perlunicode.html">perlunicode</a> for details.</p>

<ul>

<li><p>The Unicode Character Database coming with Perl has been upgraded to Unicode 3.2.0. For more information, see http://www.unicode.org/ . [561+] (5.6.1 has UCD 3.0.1.)</p>

</li>
<li><p>For developers interested in enhancing Perl&#39;s Unicode capabilities: almost all the UCD files are included with the Perl distribution in the <i>lib/unicore</i> subdirectory. The most notable omission, for space considerations, is the Unihan database.</p>

</li>
<li><p>The properties \p{Blank} and \p{SpacePerl} have been added. &quot;Blank&quot; is like C isblank(), that is, it contains only &quot;horizontal whitespace&quot; (the space character is, the newline isn&#39;t), and the &quot;SpacePerl&quot; is the Unicode equivalent of <code>\s</code> (\p{Space} isn&#39;t, since that includes the vertical tabulator character, whereas <code>\s</code> doesn&#39;t.)</p>

<p>See &quot;New Unicode Properties&quot; earlier in this document for additional information on changes with Unicode properties.</p>

</li>
</ul>

<h2 id="PerlIO-is-Now-The-Default"><a class="permalink" href="perl58delta.html#PerlIO-is-Now-The-Default">#</a><a id="PerlIO"></a>PerlIO is Now The Default</h2>

<ul>

<li><p>IO is now by default done via PerlIO rather than system&#39;s &quot;stdio&quot;. PerlIO allows &quot;layers&quot; to be &quot;pushed&quot; onto a file handle to alter the handle&#39;s behaviour. Layers can be specified at open time via 3-arg form of open:</p>

<pre><code>open($fh,&#39;&gt;:crlf :utf8&#39;, $path) || ...</code></pre>

<p>or on already opened handles via extended <code>binmode</code>:</p>

<pre><code>binmode($fh,&#39;:encoding(iso-8859-7)&#39;);</code></pre>

<p>The built-in layers are: unix (low level read/write), stdio (as in previous Perls), perlio (re-implementation of stdio buffering in a portable manner), crlf (does CRLF &lt;=&gt; &quot;\n&quot; translation as on Win32, but available on any platform). A mmap layer may be available if platform supports it (mostly Unixes).</p>

<p>Layers to be applied by default may be specified via the &#39;open&#39; pragma.</p>

<p>See <a href="perl58delta.html#Installation-and-Configuration-Improvements">&quot;Installation and Configuration Improvements&quot;</a> for the effects of PerlIO on your architecture name.</p>

</li>
<li><p>If your platform supports fork(), you can use the list form of <code>open</code> for pipes. For example:</p>

<pre><code>open KID_PS, &quot;-|&quot;, &quot;ps&quot;, &quot;aux&quot; or die $!;</code></pre>

<p>forks the ps(1) command (without spawning a shell, as there are more than three arguments to open()), and reads its standard output via the <code>KID_PS</code> filehandle. See <a href="perlipc.html">perlipc</a>.</p>

</li>
<li><p>File handles can be marked as accepting Perl&#39;s internal encoding of Unicode (UTF-8 or UTF-EBCDIC depending on platform) by a pseudo layer &quot;:utf8&quot; :</p>

<pre><code>open($fh,&quot;&gt;:utf8&quot;,&quot;Uni.txt&quot;);</code></pre>

<p>Note for EBCDIC users: the pseudo layer &quot;:utf8&quot; is erroneously named for you since it&#39;s not UTF-8 what you will be getting but instead UTF-EBCDIC. See <a href="perlunicode.html">perlunicode</a>, <a href="utf8.html">utf8</a>, and http://www.unicode.org/unicode/reports/tr16/ for more information. In future releases this naming may change. See <a href="perluniintro.html">perluniintro</a> for more information about UTF-8.</p>

</li>
<li><p>If your environment variables (LC_ALL, LC_CTYPE, LANG) look like you want to use UTF-8 (any of the variables match <code>/utf-?8/i</code>), your STDIN, STDOUT, STDERR handles and the default open layer (see <a href="open.html">open</a>) are marked as UTF-8. (This feature, like other new features that combine Unicode and I/O, work only if you are using PerlIO, but that&#39;s the default.)</p>

<p>Note that after this Perl really does assume that everything is UTF-8: for example if some input handle is not, Perl will probably very soon complain about the input data like this &quot;Malformed UTF-8 ...&quot; since any old eight-bit data is not legal UTF-8.</p>

<p>Note for code authors: if you want to enable your users to use UTF-8 as their default encoding but in your code still have eight-bit I/O streams (such as images or zip files), you need to explicitly open() or binmode() with <code>:bytes</code> (see <a href="perlfunc.html#open">&quot;open&quot; in perlfunc</a> and <a href="perlfunc.html#binmode">&quot;binmode&quot; in perlfunc</a>), or you can just use <code>binmode(FH)</code> (nice for pre-5.8.0 backward compatibility).</p>

</li>
<li><p>File handles can translate character encodings from/to Perl&#39;s internal Unicode form on read/write via the &quot;:encoding()&quot; layer.</p>

</li>
<li><p>File handles can be opened to &quot;in memory&quot; files held in Perl scalars via:</p>

<pre><code>open($fh,&#39;&gt;&#39;, \$variable) || ...</code></pre>

</li>
<li><p>Anonymous temporary files are available without need to &#39;use FileHandle&#39; or other module via</p>

<pre><code>open($fh,&quot;+&gt;&quot;, undef) || ...</code></pre>

<p>That is a literal undef, not an undefined value.</p>

</li>
</ul>

<h2 id="ithreads"><a class="permalink" href="perl58delta.html#ithreads">#</a>ithreads</h2>

<p>The new interpreter threads (&quot;ithreads&quot; for short) implementation of multithreading, by Arthur Bergman, replaces the old &quot;5.005 threads&quot; implementation. In the ithreads model any data sharing between threads must be explicit, as opposed to the model where data sharing was implicit. See <a href="threads.html">threads</a> and <a href="./threads::shared.html">threads::shared</a>, and <a href="perlthrtut.html">perlthrtut</a>.</p>

<p>As a part of the ithreads implementation Perl will also use any necessary and detectable reentrant libc interfaces.</p>

<h2 id="Restricted-Hashes"><a class="permalink" href="perl58delta.html#Restricted-Hashes">#</a><a id="Restricted"></a>Restricted Hashes</h2>

<p>A restricted hash is restricted to a certain set of keys, no keys outside the set can be added. Also individual keys can be restricted so that the key cannot be deleted and the value cannot be changed. No new syntax is involved: the Hash::Util module is the interface.</p>

<h2 id="Safe-Signals"><a class="permalink" href="perl58delta.html#Safe-Signals">#</a><a id="Safe"></a>Safe Signals</h2>

<p>Perl used to be fragile in that signals arriving at inopportune moments could corrupt Perl&#39;s internal state. Now Perl postpones handling of signals until it&#39;s safe (between opcodes).</p>

<p>This change may have surprising side effects because signals no longer interrupt Perl instantly. Perl will now first finish whatever it was doing, like finishing an internal operation (like sort()) or an external operation (like an I/O operation), and only then look at any arrived signals (and before starting the next operation). No more corrupt internal state since the current operation is always finished first, but the signal may take more time to get heard. Note that breaking out from potentially blocking operations should still work, though.</p>

<h2 id="Understanding-of-Numbers"><a class="permalink" href="perl58delta.html#Understanding-of-Numbers">#</a><a id="Understanding"></a>Understanding of Numbers</h2>

<p>In general a lot of fixing has happened in the area of Perl&#39;s understanding of numbers, both integer and floating point. Since in many systems the standard number parsing functions like <code>strtoul()</code> and <code>atof()</code> seem to have bugs, Perl tries to work around their deficiencies. This results hopefully in more accurate numbers.</p>

<p>Perl now tries internally to use integer values in numeric conversions and basic arithmetics (+ - * /) if the arguments are integers, and tries also to keep the results stored internally as integers. This change leads to often slightly faster and always less lossy arithmetics. (Previously Perl always preferred floating point numbers in its math.)</p>

<h2 id="Arrays-now-always-interpolate-into-double-quoted-strings-[561]"><a class="permalink" href="perl58delta.html#Arrays-now-always-interpolate-into-double-quoted-strings-%5B561%5D">#</a><a id="Arrays"></a><a id="Arrays-now-always-interpolate-into-double-quoted-strings-561"></a>Arrays now always interpolate into double-quoted strings [561]</h2>

<p>In double-quoted strings, arrays now interpolate, no matter what. The behavior in earlier versions of perl 5 was that arrays would interpolate into strings if the array had been mentioned before the string was compiled, and otherwise Perl would raise a fatal compile-time error. In versions 5.000 through 5.003, the error was</p>

<pre><code>Literal @example now requires backslash</code></pre>

<p>In versions 5.004_01 through 5.6.0, the error was</p>

<pre><code>In string, @example now must be written as \@example</code></pre>

<p>The idea here was to get people into the habit of writing <code>&quot;fred\@example.com&quot;</code> when they wanted a literal <code>@</code> sign, just as they have always written <code>&quot;Give me back my \$5&quot;</code> when they wanted a literal <code>$</code> sign.</p>

<p>Starting with 5.6.1, when Perl now sees an <code>@</code> sign in a double-quoted string, it <i>always</i> attempts to interpolate an array, regardless of whether or not the array has been used or declared already. The fatal error has been downgraded to an optional warning:</p>

<pre><code>Possible unintended interpolation of @example in string</code></pre>

<p>This warns you that <code>&quot;fred@example.com&quot;</code> is going to turn into <code>fred.com</code> if you don&#39;t backslash the <code>@</code>. See http://perl.plover.com/at-error.html for more details about the history here.</p>

<h2 id="Miscellaneous-Changes"><a class="permalink" href="perl58delta.html#Miscellaneous-Changes">#</a><a id="Miscellaneous"></a>Miscellaneous Changes</h2>

<ul>

<li><p>AUTOLOAD is now lvaluable, meaning that you can add the :lvalue attribute to AUTOLOAD subroutines and you can assign to the AUTOLOAD return value.</p>

</li>
<li><p>The $Config{byteorder} (and corresponding BYTEORDER in config.h) was previously wrong in platforms if sizeof(long) was 4, but sizeof(IV) was 8. The byteorder was only sizeof(long) bytes long (1234 or 4321), but now it is correctly sizeof(IV) bytes long, (12345678 or 87654321). (This problem didn&#39;t affect Windows platforms.)</p>

<p>Also, $Config{byteorder} is now computed dynamically--this is more robust with &quot;fat binaries&quot; where an executable image contains binaries for more than one binary platform, and when cross-compiling.</p>

</li>
<li><p><code>perl -d:Module=arg,arg,arg</code> now works (previously one couldn&#39;t pass in multiple arguments.)</p>

</li>
<li><p><code>do</code> followed by a bareword now ensures that this bareword isn&#39;t a keyword (to avoid a bug where <code>do q(foo.pl)</code> tried to call a subroutine called <code>q</code>). This means that for example instead of <code>do format()</code> you must write <code>do &amp;format()</code>.</p>

</li>
<li><p>The builtin dump() now gives an optional warning <code>dump() better written as CORE::dump()</code>, meaning that by default <code>dump(...)</code> is resolved as the builtin dump() which dumps core and aborts, not as (possibly) user-defined <code>sub dump</code>. To call the latter, qualify the call as <code>&amp;dump(...)</code>. (The whole dump() feature is to considered deprecated, and possibly removed/changed in future releases.)</p>

</li>
<li><p>chomp() and chop() are now overridable. Note, however, that their prototype (as given by <code>prototype(&quot;CORE::chomp&quot;)</code> is undefined, because it cannot be expressed and therefore one cannot really write replacements to override these builtins.</p>

</li>
<li><p>END blocks are now run even if you exit/die in a BEGIN block. Internally, the execution of END blocks is now controlled by PL_exit_flags &amp; PERL_EXIT_DESTRUCT_END. This enables the new behaviour for Perl embedders. This will default in 5.10. See <a href="perlembed.html">perlembed</a>.</p>

</li>
<li><p>Formats now support zero-padded decimal fields.</p>

</li>
<li><p>Although &quot;you shouldn&#39;t do that&quot;, it was possible to write code that depends on Perl&#39;s hashed key order (Data::Dumper does this). The new algorithm &quot;One-at-a-Time&quot; produces a different hashed key order. More details are in <a href="perl58delta.html#Performance-Enhancements">&quot;Performance Enhancements&quot;</a>.</p>

</li>
<li><p>lstat(FILEHANDLE) now gives a warning because the operation makes no sense. In future releases this may become a fatal error.</p>

</li>
<li><p>Spurious syntax errors generated in certain situations, when glob() caused File::Glob to be loaded for the first time, have been fixed. [561]</p>

</li>
<li><p>Lvalue subroutines can now return <code>undef</code> in list context. However, the lvalue subroutine feature still remains experimental. [561+]</p>

</li>
<li><p>A lost warning &quot;Can&#39;t declare ... dereference in my&quot; has been restored (Perl had it earlier but it became lost in later releases.)</p>

</li>
<li><p>A new special regular expression variable has been introduced: <code>$^N</code>, which contains the most-recently closed group (submatch).</p>

</li>
<li><p><code>no Module;</code> does not produce an error even if Module does not have an unimport() method. This parallels the behavior of <code>use</code> vis-a-vis <code>import</code>. [561]</p>

</li>
<li><p>The numerical comparison operators return <code>undef</code> if either operand is a NaN. Previously the behaviour was unspecified.</p>

</li>
<li><p><code>our</code> can now have an experimental optional attribute <code>unique</code> that affects how global variables are shared among multiple interpreters, see <a href="perlfunc.html#our">&quot;our&quot; in perlfunc</a>.</p>

</li>
<li><p>The following builtin functions are now overridable: each(), keys(), pop(), push(), shift(), splice(), unshift(). [561]</p>

</li>
<li><p><code>pack() / unpack()</code> can now group template letters with <code>()</code> and then apply repetition/count modifiers on the groups.</p>

</li>
<li><p><code>pack() / unpack()</code> can now process the Perl internal numeric types: IVs, UVs, NVs-- and also long doubles, if supported by the platform. The template letters are <code>j</code>, <code>J</code>, <code>F</code>, and <code>D</code>.</p>

</li>
<li><p><code>pack(&#39;U0a*&#39;, ...)</code> can now be used to force a string to UTF-8.</p>

</li>
<li><p>my __PACKAGE__ $obj now works. [561]</p>

</li>
<li><p>POSIX::sleep() now returns the number of <i>unslept</i> seconds (as the POSIX standard says), as opposed to CORE::sleep() which returns the number of slept seconds.</p>

</li>
<li><p>printf() and sprintf() now support parameter reordering using the <code>%\d+\$</code> and <code>*\d+\$</code> syntaxes. For example</p>

<pre><code>printf &quot;%2\$s %1\$s\n&quot;, &quot;foo&quot;, &quot;bar&quot;;</code></pre>

<p>will print &quot;bar foo\n&quot;. This feature helps in writing internationalised software, and in general when the order of the parameters can vary.</p>

</li>
<li><p>The (\&amp;) prototype now works properly. [561]</p>

</li>
<li><p>prototype(\[$@%&amp;]) is now available to implicitly create references (useful for example if you want to emulate the tie() interface).</p>

</li>
<li><p>A new command-line option, <code>-t</code> is available. It is the little brother of <code>-T</code>: instead of dying on taint violations, lexical warnings are given. <b>This is only meant as a temporary debugging aid while securing the code of old legacy applications. This is not a substitute for -T.</b></p>

</li>
<li><p>In other taint news, the <code>exec LIST</code> and <code>system LIST</code> have now been considered too risky (think <code>exec @ARGV</code>: it can start any program with any arguments), and now the said forms cause a warning under lexical warnings. You should carefully launder the arguments to guarantee their validity. In future releases of Perl the forms will become fatal errors so consider starting laundering now.</p>

</li>
<li><p>Tied hash interfaces are now required to have the EXISTS and DELETE methods (either own or inherited).</p>

</li>
<li><p>If tr/// is just counting characters, it doesn&#39;t attempt to modify its target.</p>

</li>
<li><p>untie() will now call an UNTIE() hook if it exists. See <a href="perltie.html">perltie</a> for details. [561]</p>

</li>
<li><p><a href="perlfunc.html#utime">&quot;utime&quot; in perlfunc</a> now supports <code>utime undef, undef, @files</code> to change the file timestamps to the current time.</p>

</li>
<li><p>The rules for allowing underscores (underbars) in numeric constants have been relaxed and simplified: now you can have an underscore simply <b>between digits</b>.</p>

</li>
<li><p>Rather than relying on C&#39;s argv[0] (which may not contain a full pathname) where possible $^X is now set by asking the operating system. (eg by reading <i>/proc/self/exe</i> on Linux, <i>/proc/curproc/file</i> on FreeBSD)</p>

</li>
<li><p>A new variable, <code>${^TAINT}</code>, indicates whether taint mode is enabled.</p>

</li>
<li><p>You can now override the readline() builtin, and this overrides also the &lt;FILEHANDLE&gt; angle bracket operator.</p>

</li>
<li><p>The command-line options -s and -F are now recognized on the shebang (#!) line.</p>

</li>
<li><p>Use of the <code>/c</code> match modifier without an accompanying <code>/g</code> modifier elicits a new warning: <code>Use of /c modifier is meaningless without /g</code>.</p>

<p>Use of <code>/c</code> in substitutions, even with <code>/g</code>, elicits <code>Use of /c modifier is meaningless in s///</code>.</p>

<p>Use of <code>/g</code> with <code>split</code> elicits <code>Use of /g modifier is meaningless in split</code>.</p>

</li>
<li><p>Support for the <code>CLONE</code> special subroutine had been added. With ithreads, when a new thread is created, all Perl data is cloned, however non-Perl data cannot be cloned automatically. In <code>CLONE</code> you can do whatever you need to do, like for example handle the cloning of non-Perl data, if necessary. <code>CLONE</code> will be executed once for every package that has it defined or inherited. It will be called in the context of the new thread, so all modifications are made in the new area.</p>

<p>See <a href="perlmod.html">perlmod</a></p>

</li>
</ul>

<h1 id="Modules-and-Pragmata"><a class="permalink" href="perl58delta.html#Modules-and-Pragmata">#</a><a id="Modules"></a>Modules and Pragmata</h1>

<h2 id="New-Modules-and-Pragmata"><a class="permalink" href="perl58delta.html#New-Modules-and-Pragmata">#</a><a id="New2"></a>New Modules and Pragmata</h2>

<ul>

<li><p><code>Attribute::Handlers</code>, originally by Damian Conway and now maintained by Arthur Bergman, allows a class to define attribute handlers.</p>

<pre><code>package MyPack;
use Attribute::Handlers;
sub Wolf :ATTR(SCALAR) { print &quot;howl!\n&quot; }

# later, in some package using or inheriting from MyPack...

my MyPack $Fluffy : Wolf; # the attribute handler Wolf will be called</code></pre>

<p>Both variables and routines can have attribute handlers. Handlers can be specific to type (SCALAR, ARRAY, HASH, or CODE), or specific to the exact compilation phase (BEGIN, CHECK, INIT, or END). See <a href="./Attribute::Handlers.html">Attribute::Handlers</a>.</p>

</li>
<li><p><code>B::Concise</code>, by Stephen McCamant, is a new compiler backend for walking the Perl syntax tree, printing concise info about ops. The output is highly customisable. See <a href="./B::Concise.html">B::Concise</a>. [561+]</p>

</li>
<li><p>The new bignum, bigint, and bigrat pragmas, by Tels, implement transparent bignum support (using the Math::BigInt, Math::BigFloat, and Math::BigRat backends).</p>

</li>
<li><p><code>Class::ISA</code>, by Sean Burke, is a module for reporting the search path for a class&#39;s ISA tree. See <a href="./Class::ISA.html">Class::ISA</a>.</p>

</li>
<li><p><code>Cwd</code> now has a split personality: if possible, an XS extension is used, (this will hopefully be faster, more secure, and more robust) but if not possible, the familiar Perl implementation is used.</p>

</li>
<li><p><code>Devel::PPPort</code>, originally by Kenneth Albanowski and now maintained by Paul Marquess, has been added. It is primarily used by <code>h2xs</code> to enhance portability of XS modules between different versions of Perl. See <a href="./Devel::PPPort.html">Devel::PPPort</a>.</p>

</li>
<li><p><code>Digest</code>, frontend module for calculating digests (checksums), from Gisle Aas, has been added. See <a href="Digest.html">Digest</a>.</p>

</li>
<li><p><code>Digest::MD5</code> for calculating MD5 digests (checksums) as defined in RFC 1321, from Gisle Aas, has been added. See <a href="./Digest::MD5.html">Digest::MD5</a>.</p>

<pre><code>use Digest::MD5 &#39;md5_hex&#39;;

$digest = md5_hex(&quot;Thirsty Camel&quot;);

print $digest, &quot;\n&quot;; # 01d19d9d2045e005c3f1b80e8b164de1</code></pre>

<p>NOTE: the <code>MD5</code> backward compatibility module is deliberately not included since its further use is discouraged.</p>

<p>See also <a href="./PerlIO::via::QuotedPrint.html">PerlIO::via::QuotedPrint</a>.</p>

</li>
<li><p><code>Encode</code>, originally by Nick Ing-Simmons and now maintained by Dan Kogai, provides a mechanism to translate between different character encodings. Support for Unicode, ISO-8859-1, and ASCII are compiled in to the module. Several other encodings (like the rest of the ISO-8859, CP*/Win*, Mac, KOI8-R, three variants EBCDIC, Chinese, Japanese, and Korean encodings) are included and can be loaded at runtime. (For space considerations, the largest Chinese encodings have been separated into their own CPAN module, Encode::HanExtra, which Encode will use if available). See <a href="Encode.html">Encode</a>.</p>

<p>Any encoding supported by Encode module is also available to the &quot;:encoding()&quot; layer if PerlIO is used.</p>

</li>
<li><p><code>Hash::Util</code> is the interface to the new <i>restricted hashes</i> feature. (Implemented by Jeffrey Friedl, Nick Ing-Simmons, and Michael Schwern.) See <a href="./Hash::Util.html">Hash::Util</a>.</p>

</li>
<li><p><code>I18N::Langinfo</code> can be used to query locale information. See <a href="./I18N::Langinfo.html">I18N::Langinfo</a>.</p>

</li>
<li><p><code>I18N::LangTags</code>, by Sean Burke, has functions for dealing with RFC3066-style language tags. See <a href="./I18N::LangTags.html">I18N::LangTags</a>.</p>

</li>
<li><p><code>ExtUtils::Constant</code>, by Nicholas Clark, is a new tool for extension writers for generating XS code to import C header constants. See <a href="./ExtUtils::Constant.html">ExtUtils::Constant</a>.</p>

</li>
<li><p><code>Filter::Simple</code>, by Damian Conway, is an easy-to-use frontend to Filter::Util::Call. See <a href="./Filter::Simple.html">Filter::Simple</a>.</p>

<pre><code># in MyFilter.pm:

package MyFilter;

use Filter::Simple sub {
    while (my ($from, $to) = splice @_, 0, 2) {
            s/$from/$to/g;
    }
};

1;

# in user&#39;s code:

use MyFilter qr/red/ =&gt; &#39;green&#39;;

print &quot;red\n&quot;;   # this code is filtered, will print &quot;green\n&quot;
print &quot;bored\n&quot;; # this code is filtered, will print &quot;bogreen\n&quot;

no MyFilter;

print &quot;red\n&quot;;   # this code is not filtered, will print &quot;red\n&quot;</code></pre>

</li>
<li><p><code>File::Temp</code>, by Tim Jenness, allows one to create temporary files and directories in an easy, portable, and secure way. See <a href="./File::Temp.html">File::Temp</a>. [561+]</p>

</li>
<li><p><code>Filter::Util::Call</code>, by Paul Marquess, provides you with the framework to write <i>source filters</i> in Perl. For most uses, the frontend Filter::Simple is to be preferred. See <a href="./Filter::Util::Call.html">Filter::Util::Call</a>.</p>

</li>
<li><p><code>if</code>, by Ilya Zakharevich, is a new pragma for conditional inclusion of modules.</p>

</li>
<li><p><a href="https://perldoc.perl.org/5.35.0/libnet">libnet</a>, by Graham Barr, is a collection of perl5 modules related to network programming. See <a href="./Net::FTP.html">Net::FTP</a>, <a href="./Net::NNTP.html">Net::NNTP</a>, <a href="./Net::Ping.html">Net::Ping</a> (not part of libnet, but related), <a href="./Net::POP3.html">Net::POP3</a>, <a href="./Net::SMTP.html">Net::SMTP</a>, and <a href="./Net::Time.html">Net::Time</a>.</p>

<p>Perl installation leaves libnet unconfigured; use <i>libnetcfg</i> to configure it.</p>

</li>
<li><p><code>List::Util</code>, by Graham Barr, is a selection of general-utility list subroutines, such as sum(), min(), first(), and shuffle(). See <a href="./List::Util.html">List::Util</a>.</p>

</li>
<li><p><code>Locale::Constants</code>, <code>Locale::Country</code>, <code>Locale::Currency</code> <code>Locale::Language</code>, and <a href="./Locale::Script.html">Locale::Script</a>, by Neil Bowers, have been added. They provide the codes for various locale standards, such as &quot;fr&quot; for France, &quot;usd&quot; for US Dollar, and &quot;ja&quot; for Japanese.</p>

<pre><code>use Locale::Country;

$country = code2country(&#39;jp&#39;);               # $country gets &#39;Japan&#39;
$code    = country2code(&#39;Norway&#39;);           # $code gets &#39;no&#39;</code></pre>

<p>See <a href="https://perldoc.perl.org/5.35.0/Locale::Constants">Locale::Constants</a>, <a href="./Locale::Country.html">Locale::Country</a>, <a href="./Locale::Currency.html">Locale::Currency</a>, and <a href="./Locale::Language.html">Locale::Language</a>.</p>

</li>
<li><p><code>Locale::Maketext</code>, by Sean Burke, is a localization framework. See <a href="./Locale::Maketext.html">Locale::Maketext</a>, and <a href="./Locale::Maketext::TPJ13.html">Locale::Maketext::TPJ13</a>. The latter is an article about software localization, originally published in The Perl Journal #13, and republished here with kind permission.</p>

</li>
<li><p><code>Math::BigRat</code> for big rational numbers, to accompany Math::BigInt and Math::BigFloat, from Tels. See <a href="./Math::BigRat.html">Math::BigRat</a>.</p>

</li>
<li><p><code>Memoize</code> can make your functions faster by trading space for time, from Mark-Jason Dominus. See <a href="Memoize.html">Memoize</a>.</p>

</li>
<li><p><code>MIME::Base64</code>, by Gisle Aas, allows you to encode data in base64, as defined in RFC 2045 - <i>MIME (Multipurpose Internet Mail Extensions)</i>.</p>

<pre><code>use MIME::Base64;

$encoded = encode_base64(&#39;Aladdin:open sesame&#39;);
$decoded = decode_base64($encoded);

print $encoded, &quot;\n&quot;; # &quot;QWxhZGRpbjpvcGVuIHNlc2FtZQ==&quot;</code></pre>

<p>See <a href="./MIME::Base64.html">MIME::Base64</a>.</p>

</li>
<li><p><code>MIME::QuotedPrint</code>, by Gisle Aas, allows you to encode data in quoted-printable encoding, as defined in RFC 2045 - <i>MIME (Multipurpose Internet Mail Extensions)</i>.</p>

<pre><code>use MIME::QuotedPrint;

$encoded = encode_qp(&quot;\xDE\xAD\xBE\xEF&quot;);
$decoded = decode_qp($encoded);

print $encoded, &quot;\n&quot;; # &quot;=DE=AD=BE=EF\n&quot;
print $decoded, &quot;\n&quot;; # &quot;\xDE\xAD\xBE\xEF\n&quot;</code></pre>

<p>See also <a href="./PerlIO::via::QuotedPrint.html">PerlIO::via::QuotedPrint</a>.</p>

</li>
<li><p><code>NEXT</code>, by Damian Conway, is a pseudo-class for method redispatch. See <a href="NEXT.html">NEXT</a>.</p>

</li>
<li><p><code>open</code> is a new pragma for setting the default I/O layers for open().</p>

</li>
<li><p><code>PerlIO::scalar</code>, by Nick Ing-Simmons, provides the implementation of IO to &quot;in memory&quot; Perl scalars as discussed above. It also serves as an example of a loadable PerlIO layer. Other future possibilities include PerlIO::Array and PerlIO::Code. See <a href="./PerlIO::scalar.html">PerlIO::scalar</a>.</p>

</li>
<li><p><code>PerlIO::via</code>, by Nick Ing-Simmons, acts as a PerlIO layer and wraps PerlIO layer functionality provided by a class (typically implemented in Perl code).</p>

</li>
<li><p><code>PerlIO::via::QuotedPrint</code>, by Elizabeth Mattijsen, is an example of a <code>PerlIO::via</code> class:</p>

<pre><code>use PerlIO::via::QuotedPrint;
open($fh,&quot;&gt;:via(QuotedPrint)&quot;,$path);</code></pre>

<p>This will automatically convert everything output to <code>$fh</code> to Quoted-Printable. See <a href="./PerlIO::via.html">PerlIO::via</a> and <a href="./PerlIO::via::QuotedPrint.html">PerlIO::via::QuotedPrint</a>.</p>

</li>
<li><p><code>Pod::ParseLink</code>, by Russ Allbery, has been added, to parse L&lt;&gt; links in pods as described in the new perlpodspec.</p>

</li>
<li><p><code>Pod::Text::Overstrike</code>, by Joe Smith, has been added. It converts POD data to formatted overstrike text. See <a href="./Pod::Text::Overstrike.html">Pod::Text::Overstrike</a>. [561+]</p>

</li>
<li><p><code>Scalar::Util</code> is a selection of general-utility scalar subroutines, such as blessed(), reftype(), and tainted(). See <a href="./Scalar::Util.html">Scalar::Util</a>.</p>

</li>
<li><p><code>sort</code> is a new pragma for controlling the behaviour of sort().</p>

</li>
<li><p><code>Storable</code> gives persistence to Perl data structures by allowing the storage and retrieval of Perl data to and from files in a fast and compact binary format. Because in effect Storable does serialisation of Perl data structures, with it you can also clone deep, hierarchical datastructures. Storable was originally created by Raphael Manfredi, but it is now maintained by Abhijit Menon-Sen. Storable has been enhanced to understand the two new hash features, Unicode keys and restricted hashes. See <a href="Storable.html">Storable</a>.</p>

</li>
<li><p><code>Switch</code>, by Damian Conway, has been added. Just by saying</p>

<pre><code>use Switch;</code></pre>

<p>you have <code>switch</code> and <code>case</code> available in Perl.</p>

<pre><code>    use Switch;

    switch ($val) {

		case 1		{ print &quot;number 1&quot; }
		case &quot;a&quot;	{ print &quot;string a&quot; }
		case [1..10,42]	{ print &quot;number in list&quot; }
		case (@array)	{ print &quot;number in list&quot; }
		case /\w+/	{ print &quot;pattern&quot; }
		case qr/\w+/	{ print &quot;pattern&quot; }
		case (%hash)	{ print &quot;entry in hash&quot; }
		case (\%hash)	{ print &quot;entry in hash&quot; }
		case (\&amp;sub)	{ print &quot;arg to subroutine&quot; }
		else		{ print &quot;previous case not true&quot; }
    }</code></pre>

<p>See <a href="Switch.html">Switch</a>.</p>

</li>
<li><p><code>Test::More</code>, by Michael Schwern, is yet another framework for writing test scripts, more extensive than Test::Simple. See <a href="./Test::More.html">Test::More</a>.</p>

</li>
<li><p><code>Test::Simple</code>, by Michael Schwern, has basic utilities for writing tests. See <a href="./Test::Simple.html">Test::Simple</a>.</p>

</li>
<li><p><code>Text::Balanced</code>, by Damian Conway, has been added, for extracting delimited text sequences from strings.</p>

<pre><code>use Text::Balanced &#39;extract_delimited&#39;;

($a, $b) = extract_delimited(&quot;&#39;never say never&#39;, he never said&quot;, &quot;&#39;&quot;, &#39;&#39;);</code></pre>

<p>$a will be &quot;&#39;never say never&#39;&quot;, $b will be &#39;, he never said&#39;.</p>

<p>In addition to extract_delimited(), there are also extract_bracketed(), extract_quotelike(), extract_codeblock(), extract_variable(), extract_tagged(), extract_multiple(), gen_delimited_pat(), and gen_extract_tagged(). With these, you can implement rather advanced parsing algorithms. See <a href="./Text::Balanced.html">Text::Balanced</a>.</p>

</li>
<li><p><code>threads</code>, by Arthur Bergman, is an interface to interpreter threads. Interpreter threads (ithreads) is the new thread model introduced in Perl 5.6 but only available as an internal interface for extension writers (and for Win32 Perl for <code>fork()</code> emulation). See <a href="threads.html">threads</a>, <a href="./threads::shared.html">threads::shared</a>, and <a href="perlthrtut.html">perlthrtut</a>.</p>

</li>
<li><p><code>threads::shared</code>, by Arthur Bergman, allows data sharing for interpreter threads. See <a href="./threads::shared.html">threads::shared</a>.</p>

</li>
<li><p><code>Tie::File</code>, by Mark-Jason Dominus, associates a Perl array with the lines of a file. See <a href="./Tie::File.html">Tie::File</a>.</p>

</li>
<li><p><code>Tie::Memoize</code>, by Ilya Zakharevich, provides on-demand loaded hashes. See <a href="./Tie::Memoize.html">Tie::Memoize</a>.</p>

</li>
<li><p><code>Tie::RefHash::Nestable</code>, by Edward Avis, allows storing hash references (unlike the standard Tie::RefHash) The module is contained within Tie::RefHash. See <a href="./Tie::RefHash.html">Tie::RefHash</a>.</p>

</li>
<li><p><code>Time::HiRes</code>, by Douglas E. Wegscheid, provides high resolution timing (ualarm, usleep, and gettimeofday). See <a href="./Time::HiRes.html">Time::HiRes</a>.</p>

</li>
<li><p><code>Unicode::UCD</code> offers a querying interface to the Unicode Character Database. See <a href="./Unicode::UCD.html">Unicode::UCD</a>.</p>

</li>
<li><p><code>Unicode::Collate</code>, by SADAHIRO Tomoyuki, implements the UCA (Unicode Collation Algorithm) for sorting Unicode strings. See <a href="./Unicode::Collate.html">Unicode::Collate</a>.</p>

</li>
<li><p><code>Unicode::Normalize</code>, by SADAHIRO Tomoyuki, implements the various Unicode normalization forms. See <a href="./Unicode::Normalize.html">Unicode::Normalize</a>.</p>

</li>
<li><p><code>XS::APItest</code>, by Tim Jenness, is a test extension that exercises XS APIs. Currently only <code>printf()</code> is tested: how to output various basic data types from XS.</p>

</li>
<li><p><code>XS::Typemap</code>, by Tim Jenness, is a test extension that exercises XS typemaps. Nothing gets installed, but the code is worth studying for extension writers.</p>

</li>
</ul>

<h2 id="Updated-And-Improved-Modules-and-Pragmata"><a class="permalink" href="perl58delta.html#Updated-And-Improved-Modules-and-Pragmata">#</a><a id="Updated"></a>Updated And Improved Modules and Pragmata</h2>

<ul>

<li><p>The following independently supported modules have been updated to the newest versions from CPAN: CGI, CPAN, DB_File, File::Spec, File::Temp, Getopt::Long, Math::BigFloat, Math::BigInt, the podlators bundle (Pod::Man, Pod::Text), Pod::LaTeX [561+], Pod::Parser, Storable, Term::ANSIColor, Test, Text-Tabs+Wrap.</p>

</li>
<li><p>attributes::reftype() now works on tied arguments.</p>

</li>
<li><p>AutoLoader can now be disabled with <code>no AutoLoader;</code>.</p>

</li>
<li><p>B::Deparse has been significantly enhanced by Robin Houston. It can now deparse almost all of the standard test suite (so that the tests still succeed). There is a make target &quot;test.deparse&quot; for trying this out.</p>

</li>
<li><p>Carp now has better interface documentation, and the @CARP_NOT interface has been added to get optional control over where errors are reported independently of @ISA, by Ben Tilly.</p>

</li>
<li><p>Class::Struct can now define the classes in compile time.</p>

</li>
<li><p>Class::Struct now assigns the array/hash element if the accessor is called with an array/hash element as the <b>sole</b> argument.</p>

</li>
<li><p>The return value of Cwd::fastcwd() is now tainted.</p>

</li>
<li><p>Data::Dumper now has an option to sort hashes.</p>

</li>
<li><p>Data::Dumper now has an option to dump code references using B::Deparse.</p>

</li>
<li><p>DB_File now supports newer Berkeley DB versions, among other improvements.</p>

</li>
<li><p>Devel::Peek now has an interface for the Perl memory statistics (this works only if you are using perl&#39;s malloc, and if you have compiled with debugging).</p>

</li>
<li><p>The English module can now be used without the infamous performance hit by saying</p>

<pre><code>use English &#39;-no_match_vars&#39;;</code></pre>

<p>(Assuming, of course, that you don&#39;t need the troublesome variables <code>$`</code>, <code>$&amp;</code>, or <code>$&#39;</code>.) Also, introduced <code>@LAST_MATCH_START</code> and <code>@LAST_MATCH_END</code> English aliases for <code>@-</code> and <code>@+</code>.</p>

</li>
<li><p>ExtUtils::MakeMaker has been significantly cleaned up and fixed. The enhanced version has also been backported to earlier releases of Perl and submitted to CPAN so that the earlier releases can enjoy the fixes.</p>

</li>
<li><p>The arguments of WriteMakefile() in Makefile.PL are now checked for sanity much more carefully than before. This may cause new warnings when modules are being installed. See <a href="./ExtUtils::MakeMaker.html">ExtUtils::MakeMaker</a> for more details.</p>

</li>
<li><p>ExtUtils::MakeMaker now uses File::Spec internally, which hopefully leads to better portability.</p>

</li>
<li><p>Fcntl, Socket, and Sys::Syslog have been rewritten by Nicholas Clark to use the new-style constant dispatch section (see <a href="./ExtUtils::Constant.html">ExtUtils::Constant</a>). This means that they will be more robust and hopefully faster.</p>

</li>
<li><p>File::Find now chdir()s correctly when chasing symbolic links. [561]</p>

</li>
<li><p>File::Find now has pre- and post-processing callbacks. It also correctly changes directories when chasing symbolic links. Callbacks (naughtily) exiting with &quot;next;&quot; instead of &quot;return;&quot; now work.</p>

</li>
<li><p>File::Find is now (again) reentrant. It also has been made more portable.</p>

</li>
<li><p>The warnings issued by File::Find now belong to their own category. You can enable/disable them with <code>use/no warnings &#39;File::Find&#39;;</code>.</p>

</li>
<li><p>File::Glob::glob() has been renamed to File::Glob::bsd_glob() because the name clashes with the builtin glob(). The older name is still available for compatibility, but is deprecated. [561]</p>

</li>
<li><p>File::Glob now supports <code>GLOB_LIMIT</code> constant to limit the size of the returned list of filenames.</p>

</li>
<li><p>IPC::Open3 now allows the use of numeric file descriptors.</p>

</li>
<li><p>IO::Socket now has an atmark() method, which returns true if the socket is positioned at the out-of-band mark. The method is also exportable as a sockatmark() function.</p>

</li>
<li><p>IO::Socket::INET failed to open the specified port if the service name was not known. It now correctly uses the supplied port number as is. [561]</p>

</li>
<li><p>IO::Socket::INET has support for the ReusePort option (if your platform supports it). The Reuse option now has an alias, ReuseAddr. For clarity, you may want to prefer ReuseAddr.</p>

</li>
<li><p>IO::Socket::INET now supports a value of zero for <code>LocalPort</code> (usually meaning that the operating system will make one up.)</p>

</li>
<li><p>&#39;use lib&#39; now works identically to @INC. Removing directories with &#39;no lib&#39; now works.</p>

</li>
<li><p>Math::BigFloat and Math::BigInt have undergone a full rewrite by Tels. They are now magnitudes faster, and they support various bignum libraries such as GMP and PARI as their backends.</p>

</li>
<li><p>Math::Complex handles inf, NaN etc., better.</p>

</li>
<li><p>Net::Ping has been considerably enhanced by Rob Brown: multihoming is now supported, Win32 functionality is better, there is now time measuring functionality (optionally high-resolution using Time::HiRes), and there is now &quot;external&quot; protocol which uses Net::Ping::External module which runs your external ping utility and parses the output. A version of Net::Ping::External is available in CPAN.</p>

<p>Note that some of the Net::Ping tests are disabled when running under the Perl distribution since one cannot assume one or more of the following: enabled echo port at localhost, full Internet connectivity, or sympathetic firewalls. You can set the environment variable PERL_TEST_Net_Ping to &quot;1&quot; (one) before running the Perl test suite to enable all the Net::Ping tests.</p>

</li>
<li><p>POSIX::sigaction() is now much more flexible and robust. You can now install coderef handlers, &#39;DEFAULT&#39;, and &#39;IGNORE&#39; handlers, installing new handlers was not atomic.</p>

</li>
<li><p>In Safe, <code>%INC</code> is now localised in a Safe compartment so that use/require work.</p>

</li>
<li><p>In SDBM_File on DOSish platforms, some keys went missing because of lack of support for files with &quot;holes&quot;. A workaround for the problem has been added.</p>

</li>
<li><p>In Search::Dict one can now have a pre-processing hook for the lines being searched.</p>

</li>
<li><p>The Shell module now has an OO interface.</p>

</li>
<li><p>In Sys::Syslog there is now a failover mechanism that will go through alternative connection mechanisms until the message is successfully logged.</p>

</li>
<li><p>The Test module has been significantly enhanced.</p>

</li>
<li><p>Time::Local::timelocal() does not handle fractional seconds anymore. The rationale is that neither does localtime(), and timelocal() and localtime() are supposed to be inverses of each other.</p>

</li>
<li><p>The vars pragma now supports declaring fully qualified variables. (Something that <code>our()</code> does not and will not support.)</p>

</li>
<li><p>The <code>utf8::</code> name space (as in the pragma) provides various Perl-callable functions to provide low level access to Perl&#39;s internal Unicode representation. At the moment only length() has been implemented.</p>

</li>
</ul>

<h1 id="Utility-Changes"><a class="permalink" href="perl58delta.html#Utility-Changes">#</a><a id="Utility"></a>Utility Changes</h1>

<ul>

<li><p>Emacs perl mode (emacs/cperl-mode.el) has been updated to version 4.31.</p>

</li>
<li><p><i>emacs/e2ctags.pl</i> is now much faster.</p>

</li>
<li><p><code>enc2xs</code> is a tool for people adding their own encodings to the Encode module.</p>

</li>
<li><p><code>h2ph</code> now supports C trigraphs.</p>

</li>
<li><p><code>h2xs</code> now produces a template README.</p>

</li>
<li><p><code>h2xs</code> now uses <code>Devel::PPPort</code> for better portability between different versions of Perl.</p>

</li>
<li><p><code>h2xs</code> uses the new <a href="./ExtUtils::Constant.html">ExtUtils::Constant</a> module which will affect newly created extensions that define constants. Since the new code is more correct (if you have two constants where the first one is a prefix of the second one, the first constant <b>never</b> got defined), less lossy (it uses integers for integer constant, as opposed to the old code that used floating point numbers even for integer constants), and slightly faster, you might want to consider regenerating your extension code (the new scheme makes regenerating easy). <a href="h2xs.html">h2xs</a> now also supports C trigraphs.</p>

</li>
<li><p><code>libnetcfg</code> has been added to configure libnet.</p>

</li>
<li><p><code>perlbug</code> is now much more robust. It also sends the bug report to perl.org, not perl.com.</p>

</li>
<li><p><code>perlcc</code> has been rewritten and its user interface (that is, command line) is much more like that of the Unix C compiler, cc. (The perlbc tools has been removed. Use <code>perlcc -B</code> instead.) <b>Note that perlcc is still considered very experimental and unsupported.</b> [561]</p>

</li>
<li><p><code>perlivp</code> is a new Installation Verification Procedure utility for running any time after installing Perl.</p>

</li>
<li><p><code>piconv</code> is an implementation of the character conversion utility <code>iconv</code>, demonstrating the new Encode module.</p>

</li>
<li><p><code>pod2html</code> now allows specifying a cache directory.</p>

</li>
<li><p><code>pod2html</code> now produces XHTML 1.0.</p>

</li>
<li><p><code>pod2html</code> now understands POD written using different line endings (PC-like CRLF versus Unix-like LF versus MacClassic-like CR).</p>

</li>
<li><p><code>s2p</code> has been completely rewritten in Perl. (It is in fact a full implementation of sed in Perl: you can use the sed functionality by using the <code>psed</code> utility.)</p>

</li>
<li><p><code>xsubpp</code> now understands POD documentation embedded in the *.xs files. [561]</p>

</li>
<li><p><code>xsubpp</code> now supports the OUT keyword.</p>

</li>
</ul>

<h1 id="New-Documentation"><a class="permalink" href="perl58delta.html#New-Documentation">#</a><a id="New3"></a>New Documentation</h1>

<ul>

<li><p>perl56delta details the changes between the 5.005 release and the 5.6.0 release.</p>

</li>
<li><p>perlclib documents the internal replacements for standard C library functions. (Interesting only for extension writers and Perl core hackers.) [561+]</p>

</li>
<li><p>perldebtut is a Perl debugging tutorial. [561+]</p>

</li>
<li><p>perlebcdic contains considerations for running Perl on EBCDIC platforms. [561+]</p>

</li>
<li><p>perlintro is a gentle introduction to Perl.</p>

</li>
<li><p>perliol documents the internals of PerlIO with layers.</p>

</li>
<li><p>perlmodstyle is a style guide for writing modules.</p>

</li>
<li><p>perlnewmod tells about writing and submitting a new module. [561+]</p>

</li>
<li><p>perlpacktut is a pack() tutorial.</p>

</li>
<li><p>perlpod has been rewritten to be clearer and to record the best practices gathered over the years.</p>

</li>
<li><p>perlpodspec is a more formal specification of the pod format, mainly of interest for writers of pod applications, not to people writing in pod.</p>

</li>
<li><p>perlretut is a regular expression tutorial. [561+]</p>

</li>
<li><p>perlrequick is a regular expressions quick-start guide. Yes, much quicker than perlretut. [561]</p>

</li>
<li><p>perltodo has been updated.</p>

</li>
<li><p>perltootc has been renamed as perltooc (to not to conflict with perltoot in filesystems restricted to &quot;8.3&quot; names).</p>

</li>
<li><p>perluniintro is an introduction to using Unicode in Perl. (perlunicode is more of a detailed reference and background information)</p>

</li>
<li><p>perlutil explains the command line utilities packaged with the Perl distribution. [561+]</p>

</li>
</ul>

<p>The following platform-specific documents are available before the installation as README.<i>platform</i>, and after the installation as perl<i>platform</i>:</p>

<pre><code class="plaintext">perlaix perlamiga perlapollo perlbeos perlbs2000
perlce perlcygwin perldgux perldos perlepoc perlfreebsd perlhpux
perlhurd perlirix perlmachten perlmacos perlmint perlmpeix
perlnetware perlos2 perlos390 perlplan9 perlqnx perlsolaris
perltru64 perluts perlvmesa perlvms perlvos perlwin32</code></pre>

<p>These documents usually detail one or more of the following subjects: configuring, building, testing, installing, and sometimes also using Perl on the said platform.</p>

<p>Eastern Asian Perl users are now welcomed in their own languages: README.jp (Japanese), README.ko (Korean), README.cn (simplified Chinese) and README.tw (traditional Chinese), which are written in normal pod but encoded in EUC-JP, EUC-KR, EUC-CN and Big5. These will get installed as</p>

<pre><code class="plaintext">perljp perlko perlcn perltw</code></pre>

<ul>

<li><p>The documentation for the POSIX-BC platform is called &quot;BS2000&quot;, to avoid confusion with the Perl POSIX module.</p>

</li>
<li><p>The documentation for the WinCE platform is called perlce (README.ce in the source code kit), to avoid confusion with the perlwin32 documentation on 8.3-restricted filesystems.</p>

</li>
</ul>

<h1 id="Performance-Enhancements"><a class="permalink" href="perl58delta.html#Performance-Enhancements">#</a><a id="Performance"></a>Performance Enhancements</h1>

<ul>

<li><p>map() could get pathologically slow when the result list it generates is larger than the source list. The performance has been improved for common scenarios. [561]</p>

</li>
<li><p>sort() is also fully reentrant, in the sense that the sort function can itself call sort(). This did not work reliably in previous releases. [561]</p>

</li>
<li><p>sort() has been changed to use primarily mergesort internally as opposed to the earlier quicksort. For very small lists this may result in slightly slower sorting times, but in general the speedup should be at least 20%. Additional bonuses are that the worst case behaviour of sort() is now better (in computer science terms it now runs in time O(N log N), as opposed to quicksort&#39;s Theta(N**2) worst-case run time behaviour), and that sort() is now stable (meaning that elements with identical keys will stay ordered as they were before the sort). See the <code>sort</code> pragma for information.</p>

<p>The story in more detail: suppose you want to serve yourself a little slice of Pi.</p>

<pre><code>@digits = ( 3,1,4,1,5,9 );</code></pre>

<p>A numerical sort of the digits will yield (1,1,3,4,5,9), as expected. Which <code>1</code> comes first is hard to know, since one <code>1</code> looks pretty much like any other. You can regard this as totally trivial, or somewhat profound. However, if you just want to sort the even digits ahead of the odd ones, then what will</p>

<pre><code>sort { ($a % 2) &lt;=&gt; ($b % 2) } @digits;</code></pre>

<p>yield? The only even digit, <code>4</code>, will come first. But how about the odd numbers, which all compare equal? With the quicksort algorithm used to implement Perl 5.6 and earlier, the order of ties is left up to the sort. So, as you add more and more digits of Pi, the order in which the sorted even and odd digits appear will change. and, for sufficiently large slices of Pi, the quicksort algorithm in Perl 5.8 won&#39;t return the same results even if reinvoked with the same input. The justification for this rests with quicksort&#39;s worst case behavior. If you run</p>

<pre><code>sort { $a &lt;=&gt; $b } ( 1 .. $N , 1 .. $N );</code></pre>

<p>(something you might approximate if you wanted to merge two sorted arrays using sort), doubling $N doesn&#39;t just double the quicksort time, it <i>quadruples</i> it. Quicksort has a worst case run time that can grow like N**2, so-called <i>quadratic</i> behaviour, and it can happen on patterns that may well arise in normal use. You won&#39;t notice this for small arrays, but you <i>will</i> notice it with larger arrays, and you may not live long enough for the sort to complete on arrays of a million elements. So the 5.8 quicksort scrambles large arrays before sorting them, as a statistical defence against quadratic behaviour. But that means if you sort the same large array twice, ties may be broken in different ways.</p>

<p>Because of the unpredictability of tie-breaking order, and the quadratic worst-case behaviour, quicksort was <i>almost</i> replaced completely with a stable mergesort. <i>Stable</i> means that ties are broken to preserve the original order of appearance in the input array. So</p>

<pre><code>sort { ($a % 2) &lt;=&gt; ($b % 2) } (3,1,4,1,5,9);</code></pre>

<p>will yield (4,3,1,1,5,9), guaranteed. The even and odd numbers appear in the output in the same order they appeared in the input. Mergesort has worst case O(N log N) behaviour, the best value attainable. And, ironically, this mergesort does particularly well where quicksort goes quadratic: mergesort sorts (1..$N, 1..$N) in O(N) time. But quicksort was rescued at the last moment because it is faster than mergesort on certain inputs and platforms. For example, if you really <i>don&#39;t</i> care about the order of even and odd digits, quicksort will run in O(N) time; it&#39;s very good at sorting many repetitions of a small number of distinct elements. The quicksort divide and conquer strategy works well on platforms with relatively small, very fast, caches. Eventually, the problem gets whittled down to one that fits in the cache, from which point it benefits from the increased memory speed.</p>

<p>Quicksort was rescued by implementing a sort pragma to control aspects of the sort. The <b>stable</b> subpragma forces stable behaviour, regardless of algorithm. The <b>_quicksort</b> and <b>_mergesort</b> subpragmas are heavy-handed ways to select the underlying implementation. The leading <code>_</code> is a reminder that these subpragmas may not survive beyond 5.8. More appropriate mechanisms for selecting the implementation exist, but they wouldn&#39;t have arrived in time to save quicksort.</p>

</li>
<li><p>Hashes now use Bob Jenkins &quot;One-at-a-Time&quot; hashing key algorithm ( http://burtleburtle.net/bob/hash/doobs.html ). This algorithm is reasonably fast while producing a much better spread of values than the old hashing algorithm (originally by Chris Torek, later tweaked by Ilya Zakharevich). Hash values output from the algorithm on a hash of all 3-char printable ASCII keys comes much closer to passing the DIEHARD random number generation tests. According to perlbench, this change has not affected the overall speed of Perl.</p>

</li>
<li><p>unshift() should now be noticeably faster.</p>

</li>
</ul>

<h1 id="Installation-and-Configuration-Improvements"><a class="permalink" href="perl58delta.html#Installation-and-Configuration-Improvements">#</a><a id="Installation"></a>Installation and Configuration Improvements</h1>

<h2 id="Generic-Improvements"><a class="permalink" href="perl58delta.html#Generic-Improvements">#</a><a id="Generic"></a>Generic Improvements</h2>

<ul>

<li><p>INSTALL now explains how you can configure Perl to use 64-bit integers even on non-64-bit platforms.</p>

</li>
<li><p>Policy.sh policy change: if you are reusing a Policy.sh file (see INSTALL) and you use Configure -Dprefix=/foo/bar and in the old Policy $prefix eq $siteprefix and $prefix eq $vendorprefix, all of them will now be changed to the new prefix, /foo/bar. (Previously only $prefix changed.) If you do not like this new behaviour, specify prefix, siteprefix, and vendorprefix explicitly.</p>

</li>
<li><p>A new optional location for Perl libraries, otherlibdirs, is available. It can be used for example for vendor add-ons without disturbing Perl&#39;s own library directories.</p>

</li>
<li><p>In many platforms, the vendor-supplied &#39;cc&#39; is too stripped-down to build Perl (basically, &#39;cc&#39; doesn&#39;t do ANSI C). If this seems to be the case and &#39;cc&#39; does not seem to be the GNU C compiler &#39;gcc&#39;, an automatic attempt is made to find and use &#39;gcc&#39; instead.</p>

</li>
<li><p>gcc needs to closely track the operating system release to avoid build problems. If Configure finds that gcc was built for a different operating system release than is running, it now gives a clearly visible warning that there may be trouble ahead.</p>

</li>
<li><p>Since Perl 5.8 is not binary-compatible with previous releases of Perl, Configure no longer suggests including the 5.005 modules in @INC.</p>

</li>
<li><p>Configure <code>-S</code> can now run non-interactively. [561]</p>

</li>
<li><p>Configure support for pdp11-style memory models has been removed due to obsolescence. [561]</p>

</li>
<li><p>configure.gnu now works with options with whitespace in them.</p>

</li>
<li><p>installperl now outputs everything to STDERR.</p>

</li>
<li><p>Because PerlIO is now the default on most platforms, &quot;-perlio&quot; doesn&#39;t get appended to the $Config{archname} (also known as $^O) anymore. Instead, if you explicitly choose not to use perlio (Configure command line option -Uuseperlio), you will get &quot;-stdio&quot; appended.</p>

</li>
<li><p>Another change related to the architecture name is that &quot;-64all&quot; (-Duse64bitall, or &quot;maximally 64-bit&quot;) is appended only if your pointers are 64 bits wide. (To be exact, the use64bitall is ignored.)</p>

</li>
<li><p>In AFS installations, one can configure the root of the AFS to be somewhere else than the default <i>/afs</i> by using the Configure parameter <code>-Dafsroot=/some/where/else</code>.</p>

</li>
<li><p>APPLLIB_EXP, a lesser-known configuration-time definition, has been documented. It can be used to prepend site-specific directories to Perl&#39;s default search path (@INC); see INSTALL for information.</p>

</li>
<li><p>The version of Berkeley DB used when the Perl (and, presumably, the DB_File extension) was built is now available as <code>@Config{qw(db_version_major db_version_minor db_version_patch)}</code> from Perl and as <code>DB_VERSION_MAJOR_CFG DB_VERSION_MINOR_CFG DB_VERSION_PATCH_CFG</code> from C.</p>

</li>
<li><p>Building Berkeley DB3 for compatibility modes for DB, NDBM, and ODBM has been documented in INSTALL.</p>

</li>
<li><p>If you have CPAN access (either network or a local copy such as a CD-ROM) you can during specify extra modules to Configure to build and install with Perl using the -Dextras=... option. See INSTALL for more details.</p>

</li>
<li><p>In addition to config.over, a new override file, config.arch, is available. This file is supposed to be used by hints file writers for architecture-wide changes (as opposed to config.over which is for site-wide changes).</p>

</li>
<li><p>If your file system supports symbolic links, you can build Perl outside of the source directory by</p>

<pre><code class="plaintext">mkdir perl/build/directory
cd perl/build/directory
sh /path/to/perl/source/Configure -Dmksymlinks ...</code></pre>

<p>This will create in perl/build/directory a tree of symbolic links pointing to files in /path/to/perl/source. The original files are left unaffected. After Configure has finished, you can just say</p>

<pre><code class="plaintext">make all test</code></pre>

<p>and Perl will be built and tested, all in perl/build/directory. [561]</p>

</li>
<li><p>For Perl developers, several new make targets for profiling and debugging have been added; see <a href="perlhack.html">perlhack</a>.</p>

<ul>

<li><p>Use of the <i>gprof</i> tool to profile Perl has been documented in <a href="perlhack.html">perlhack</a>. There is a make target called &quot;perl.gprof&quot; for generating a gprofiled Perl executable.</p>

</li>
<li><p>If you have GCC 3, there is a make target called &quot;perl.gcov&quot; for creating a gcoved Perl executable for coverage analysis. See <a href="perlhack.html">perlhack</a>.</p>

</li>
<li><p>If you are on IRIX or Tru64 platforms, new profiling/debugging options have been added; see <a href="perlhack.html">perlhack</a> for more information about pixie and Third Degree.</p>

</li>
</ul>

</li>
<li><p>Guidelines of how to construct minimal Perl installations have been added to INSTALL.</p>

</li>
<li><p>The Thread extension is now not built at all under ithreads (<code>Configure -Duseithreads</code>) because it wouldn&#39;t work anyway (the Thread extension requires being Configured with <code>-Duse5005threads</code>).</p>

<p><b>Note that the 5.005 threads are unsupported and deprecated: if you have code written for the old threads you should migrate it to the new ithreads model.</b></p>

</li>
<li><p>The Gconvert macro ($Config{d_Gconvert}) used by perl for stringifying floating-point numbers is now more picky about using sprintf %.*g rules for the conversion. Some platforms that used to use gcvt may now resort to the slower sprintf.</p>

</li>
<li><p>The obsolete method of making a special (e.g., debugging) flavor of perl by saying</p>

<pre><code class="plaintext">make LIBPERL=libperld.a</code></pre>

<p>has been removed. Use -DDEBUGGING instead.</p>

</li>
</ul>

<h2 id="New-Or-Improved-Platforms"><a class="permalink" href="perl58delta.html#New-Or-Improved-Platforms">#</a><a id="New4"></a>New Or Improved Platforms</h2>

<p>For the list of platforms known to support Perl, see <a href="perlport.html#Supported-Platforms">&quot;Supported Platforms&quot; in perlport</a>.</p>

<ul>

<li><p>AIX dynamic loading should be now better supported.</p>

</li>
<li><p>AIX should now work better with gcc, threads, and 64-bitness. Also the long doubles support in AIX should be better now. See <a href="perlaix.html">perlaix</a>.</p>

</li>
<li><p>AtheOS ( http://www.atheos.cx/ ) is a new platform.</p>

</li>
<li><p>BeOS has been reclaimed.</p>

</li>
<li><p>The DG/UX platform now supports 5.005-style threads. See <a href="https://perldoc.perl.org/5.35.0/perldgux">perldgux</a>.</p>

</li>
<li><p>The DYNIX/ptx platform (also known as dynixptx) is supported at or near osvers 4.5.2.</p>

</li>
<li><p>EBCDIC platforms (z/OS (also known as OS/390), POSIX-BC, and VM/ESA) have been regained. Many test suite tests still fail and the co-existence of Unicode and EBCDIC isn&#39;t quite settled, but the situation is much better than with Perl 5.6. See <a href="perlos390.html">perlos390</a>, <a href="perlbs2000.html">perlbs2000</a> (for POSIX-BC), and perlvmesa for more information. (<b>Note:</b> support for VM/ESA was removed in Perl v5.18.0. The relevant information was in <i>README.vmesa</i>)</p>

</li>
<li><p>Building perl with -Duseithreads or -Duse5005threads now works under HP-UX 10.20 (previously it only worked under 10.30 or later). You will need a thread library package installed. See README.hpux. [561]</p>

</li>
<li><p>Mac OS Classic is now supported in the mainstream source package (MacPerl has of course been available since perl 5.004 but now the source code bases of standard Perl and MacPerl have been synchronised) [561]</p>

</li>
<li><p>Mac OS X (or Darwin) should now be able to build Perl even on HFS+ filesystems. (The case-insensitivity used to confuse the Perl build process.)</p>

</li>
<li><p>NCR MP-RAS is now supported. [561]</p>

</li>
<li><p>All the NetBSD specific patches (except for the installation specific ones) have been merged back to the main distribution.</p>

</li>
<li><p>NetWare from Novell is now supported. See <a href="perlnetware.html">perlnetware</a>.</p>

</li>
<li><p>NonStop-UX is now supported. [561]</p>

</li>
<li><p>NEC SUPER-UX is now supported.</p>

</li>
<li><p>All the OpenBSD specific patches (except for the installation specific ones) have been merged back to the main distribution.</p>

</li>
<li><p>Perl has been tested with the GNU pth userlevel thread package ( http://www.gnu.org/software/pth/pth.html ). All thread tests of Perl now work, but not without adding some yield()s to the tests, so while pth (and other userlevel thread implementations) can be considered to be &quot;working&quot; with Perl ithreads, keep in mind the possible non-preemptability of the underlying thread implementation.</p>

</li>
<li><p>Stratus VOS is now supported using Perl&#39;s native build method (Configure). This is the recommended method to build Perl on VOS. The older methods, which build miniperl, are still available. See <a href="perlvos.html">perlvos</a>. [561+]</p>

</li>
<li><p>The Amdahl UTS Unix mainframe platform is now supported. [561]</p>

</li>
<li><p>WinCE is now supported. See <a href="https://perldoc.perl.org/5.35.0/perlce">perlce</a>.</p>

</li>
<li><p>z/OS (formerly known as OS/390, formerly known as MVS OE) now has support for dynamic loading. This is not selected by default, however, you must specify -Dusedl in the arguments of Configure. [561]</p>

</li>
</ul>

<h1 id="Selected-Bug-Fixes"><a class="permalink" href="perl58delta.html#Selected-Bug-Fixes">#</a><a id="Selected"></a>Selected Bug Fixes</h1>

<p>Numerous memory leaks and uninitialized memory accesses have been hunted down. Most importantly, anonymous subs used to leak quite a bit. [561]</p>

<ul>

<li><p>The autouse pragma didn&#39;t work for Multi::Part::Function::Names.</p>

</li>
<li><p>caller() could cause core dumps in certain situations. Carp was sometimes affected by this problem. In particular, caller() now returns a subroutine name of <code>(unknown)</code> for subroutines that have been removed from the symbol table.</p>

</li>
<li><p>chop(@list) in list context returned the characters chopped in reverse order. This has been reversed to be in the right order. [561]</p>

</li>
<li><p>Configure no longer includes the DBM libraries (dbm, gdbm, db, ndbm) when building the Perl binary. The only exception to this is SunOS 4.x, which needs them. [561]</p>

</li>
<li><p>The behaviour of non-decimal but numeric string constants such as &quot;0x23&quot; was platform-dependent: in some platforms that was seen as 35, in some as 0, in some as a floating point number (don&#39;t ask). This was caused by Perl&#39;s using the operating system libraries in a situation where the result of the string to number conversion is undefined: now Perl consistently handles such strings as zero in numeric contexts.</p>

</li>
<li><p>Several debugger fixes: exit code now reflects the script exit code, condition <code>&quot;0&quot;</code> now treated correctly, the <code>d</code> command now checks line number, <code>$.</code> no longer gets corrupted, and all debugger output now goes correctly to the socket if RemotePort is set. [561]</p>

</li>
<li><p>The debugger (perl5db.pl) has been modified to present a more consistent commands interface, via (CommandSet=580). perl5db.t was also added to test the changes, and as a placeholder for further tests.</p>

<p>See <a href="perldebug.html">perldebug</a>.</p>

</li>
<li><p>The debugger has a new <code>dumpDepth</code> option to control the maximum depth to which nested structures are dumped. The <code>x</code> command has been extended so that <code>x N EXPR</code> dumps out the value of <i>EXPR</i> to a depth of at most <i>N</i> levels.</p>

</li>
<li><p>The debugger can now show lexical variables if you have the CPAN module PadWalker installed.</p>

</li>
<li><p>The order of DESTROYs has been made more predictable.</p>

</li>
<li><p>Perl 5.6.0 could emit spurious warnings about redefinition of dl_error() when statically building extensions into perl. This has been corrected. [561]</p>

</li>
<li><p><a href="dprofpp.html">dprofpp</a> -R didn&#39;t work.</p>

</li>
<li><p><code>*foo{FORMAT}</code> now works.</p>

</li>
<li><p>Infinity is now recognized as a number.</p>

</li>
<li><p>UNIVERSAL::isa no longer caches methods incorrectly. (This broke the Tk extension with 5.6.0.) [561]</p>

</li>
<li><p>Lexicals I: lexicals outside an eval &quot;&quot; weren&#39;t resolved correctly inside a subroutine definition inside the eval &quot;&quot; if they were not already referenced in the top level of the eval&quot;&quot;ed code.</p>

</li>
<li><p>Lexicals II: lexicals leaked at file scope into subroutines that were declared before the lexicals.</p>

</li>
<li><p>Lexical warnings now propagating correctly between scopes and into <code>eval &quot;...&quot;</code>.</p>

</li>
<li><p><code>use warnings qw(FATAL all)</code> did not work as intended. This has been corrected. [561]</p>

</li>
<li><p>warnings::enabled() now reports the state of $^W correctly if the caller isn&#39;t using lexical warnings. [561]</p>

</li>
<li><p>Line renumbering with eval and <code>#line</code> now works. [561]</p>

</li>
<li><p>Fixed numerous memory leaks, especially in eval &quot;&quot;.</p>

</li>
<li><p>Localised tied variables no longer leak memory</p>

<pre><code>use Tie::Hash;
tie my %tied_hash =&gt; &#39;Tie::StdHash&#39;;

...

# Used to leak memory every time local() was called;
# in a loop, this added up.
local($tied_hash{Foo}) = 1;</code></pre>

</li>
<li><p>Localised hash elements (and %ENV) are correctly unlocalised to not exist, if they didn&#39;t before they were localised.</p>

<pre><code>use Tie::Hash;
tie my %tied_hash =&gt; &#39;Tie::StdHash&#39;;

...

# Nothing has set the FOO element so far

{ local $tied_hash{FOO} = &#39;Bar&#39; }

# This used to print, but not now.
print &quot;exists!\n&quot; if exists $tied_hash{FOO};</code></pre>

<p>As a side effect of this fix, tied hash interfaces <b>must</b> define the EXISTS and DELETE methods.</p>

</li>
<li><p>mkdir() now ignores trailing slashes in the directory name, as mandated by POSIX.</p>

</li>
<li><p>Some versions of glibc have a broken modfl(). This affects builds with <code>-Duselongdouble</code>. This version of Perl detects this brokenness and has a workaround for it. The glibc release 2.2.2 is known to have fixed the modfl() bug.</p>

</li>
<li><p>Modulus of unsigned numbers now works (4063328477 % 65535 used to return 27406, instead of 27047). [561]</p>

</li>
<li><p>Some &quot;not a number&quot; warnings introduced in 5.6.0 eliminated to be more compatible with 5.005. Infinity is now recognised as a number. [561]</p>

</li>
<li><p>Numeric conversions did not recognize changes in the string value properly in certain circumstances. [561]</p>

</li>
<li><p>Attributes (such as :shared) didn&#39;t work with our().</p>

</li>
<li><p>our() variables will not cause bogus &quot;Variable will not stay shared&quot; warnings. [561]</p>

</li>
<li><p>&quot;our&quot; variables of the same name declared in two sibling blocks resulted in bogus warnings about &quot;redeclaration&quot; of the variables. The problem has been corrected. [561]</p>

</li>
<li><p>pack &quot;Z&quot; now correctly terminates the string with &quot;\0&quot;.</p>

</li>
<li><p>Fix password routines which in some shadow password platforms (e.g. HP-UX) caused getpwent() to return every other entry.</p>

</li>
<li><p>The PERL5OPT environment variable (for passing command line arguments to Perl) didn&#39;t work for more than a single group of options. [561]</p>

</li>
<li><p>PERL5OPT with embedded spaces didn&#39;t work.</p>

</li>
<li><p>printf() no longer resets the numeric locale to &quot;C&quot;.</p>

</li>
<li><p><code>qw(a\\b)</code> now parses correctly as <code>&#39;a\\b&#39;</code>: that is, as three characters, not four. [561]</p>

</li>
<li><p>pos() did not return the correct value within s///ge in earlier versions. This is now handled correctly. [561]</p>

</li>
<li><p>Printing quads (64-bit integers) with printf/sprintf now works without the q L ll prefixes (assuming you are on a quad-capable platform).</p>

</li>
<li><p>Regular expressions on references and overloaded scalars now work. [561+]</p>

</li>
<li><p>Right-hand side magic (GMAGIC) could in many cases such as string concatenation be invoked too many times.</p>

</li>
<li><p>scalar() now forces scalar context even when used in void context.</p>

</li>
<li><p>SOCKS support is now much more robust.</p>

</li>
<li><p>sort() arguments are now compiled in the right wantarray context (they were accidentally using the context of the sort() itself). The comparison block is now run in scalar context, and the arguments to be sorted are always provided list context. [561]</p>

</li>
<li><p>Changed the POSIX character class <code>[[:space:]]</code> to include the (very rarely used) vertical tab character. Added a new POSIX-ish character class <code>[[:blank:]]</code> which stands for horizontal whitespace (currently, the space and the tab).</p>

</li>
<li><p>The tainting behaviour of sprintf() has been rationalized. It does not taint the result of floating point formats anymore, making the behaviour consistent with that of string interpolation. [561]</p>

</li>
<li><p>Some cases of inconsistent taint propagation (such as within hash values) have been fixed.</p>

</li>
<li><p>The RE engine found in Perl 5.6.0 accidentally pessimised certain kinds of simple pattern matches. These are now handled better. [561]</p>

</li>
<li><p>Regular expression debug output (whether through <code>use re &#39;debug&#39;</code> or via <code>-Dr</code>) now looks better. [561]</p>

</li>
<li><p>Multi-line matches like <code>&quot;a\nxb\n&quot; =~ /(?!\A)x/m</code> were flawed. The bug has been fixed. [561]</p>

</li>
<li><p>Use of $&amp; could trigger a core dump under some situations. This is now avoided. [561]</p>

</li>
<li><p>The regular expression captured submatches ($1, $2, ...) are now more consistently unset if the match fails, instead of leaving false data lying around in them. [561]</p>

</li>
<li><p>readline() on files opened in &quot;slurp&quot; mode could return an extra &quot;&quot; (blank line) at the end in certain situations. This has been corrected. [561]</p>

</li>
<li><p>Autovivification of symbolic references of special variables described in <a href="perlvar.html">perlvar</a> (as in <code>${$num}</code>) was accidentally disabled. This works again now. [561]</p>

</li>
<li><p>Sys::Syslog ignored the <code>LOG_AUTH</code> constant.</p>

</li>
<li><p>$AUTOLOAD, sort(), lock(), and spawning subprocesses in multiple threads simultaneously are now thread-safe.</p>

</li>
<li><p>Tie::Array&#39;s SPLICE method was broken.</p>

</li>
<li><p>Allow a read-only string on the left-hand side of a non-modifying tr///.</p>

</li>
<li><p>If <code>STDERR</code> is tied, warnings caused by <code>warn</code> and <code>die</code> now correctly pass to it.</p>

</li>
<li><p>Several Unicode fixes.</p>

<ul>

<li><p>BOMs (byte order marks) at the beginning of Perl files (scripts, modules) should now be transparently skipped. UTF-16 and UCS-2 encoded Perl files should now be read correctly.</p>

</li>
<li><p>The character tables have been updated to Unicode 3.2.0.</p>

</li>
<li><p>Comparing with utf8 data does not magically upgrade non-utf8 data into utf8. (This was a problem for example if you were mixing data from I/O and Unicode data: your output might have got magically encoded as UTF-8.)</p>

</li>
<li><p>Generating illegal Unicode code points such as U+FFFE, or the UTF-16 surrogates, now also generates an optional warning.</p>

</li>
<li><p><code>IsAlnum</code>, <code>IsAlpha</code>, and <code>IsWord</code> now match titlecase.</p>

</li>
<li><p>Concatenation with the <code>.</code> operator or via variable interpolation, <code>eq</code>, <code>substr</code>, <code>reverse</code>, <code>quotemeta</code>, the <code>x</code> operator, substitution with <code>s///</code>, single-quoted UTF-8, should now work.</p>

</li>
<li><p>The <code>tr///</code> operator now works. Note that the <code>tr///CU</code> functionality has been removed (but see pack(&#39;U0&#39;, ...)).</p>

</li>
<li><p><code>eval &quot;v200&quot;</code> now works.</p>

</li>
<li><p>Perl 5.6.0 parsed m/\x{ab}/ incorrectly, leading to spurious warnings. This has been corrected. [561]</p>

</li>
<li><p>Zero entries were missing from the Unicode classes such as <code>IsDigit</code>.</p>

</li>
</ul>

</li>
<li><p>Large unsigned numbers (those above 2**31) could sometimes lose their unsignedness, causing bogus results in arithmetic operations. [561]</p>

</li>
<li><p>The Perl parser has been stress tested using both random input and Markov chain input and the few found crashes and lockups have been fixed.</p>

</li>
</ul>

<h2 id="Platform-Specific-Changes-and-Fixes"><a class="permalink" href="perl58delta.html#Platform-Specific-Changes-and-Fixes">#</a><a id="Platform"></a>Platform Specific Changes and Fixes</h2>

<ul>

<li><p>BSDI 4.*</p>

<p>Perl now works on post-4.0 BSD/OSes.</p>

</li>
<li><p>All BSDs</p>

<p>Setting <code>$0</code> now works (as much as possible; see <a href="perlvar.html">perlvar</a> for details).</p>

</li>
<li><p>Cygwin</p>

<p>Numerous updates; currently synchronised with Cygwin 1.3.10.</p>

</li>
<li><p>Previously DYNIX/ptx had problems in its Configure probe for non-blocking I/O.</p>

</li>
<li><p>EPOC</p>

<p>EPOC now better supported. See README.epoc. [561]</p>

</li>
<li><p>FreeBSD 3.*</p>

<p>Perl now works on post-3.0 FreeBSDs.</p>

</li>
<li><p>HP-UX</p>

<p>README.hpux updated; <code>Configure -Duse64bitall</code> now works; now uses HP-UX malloc instead of Perl malloc.</p>

</li>
<li><p>IRIX</p>

<p>Numerous compilation flag and hint enhancements; accidental mixing of 32-bit and 64-bit libraries (a doomed attempt) made much harder.</p>

</li>
<li><p>Linux</p>

<ul>

<li><p>Long doubles should now work (see INSTALL). [561]</p>

</li>
<li><p>Linux previously had problems related to sockaddrlen when using accept(), recvfrom() (in Perl: recv()), getpeername(), and getsockname().</p>

</li>
</ul>

</li>
<li><p>Mac OS Classic</p>

<p>Compilation of the standard Perl distribution in Mac OS Classic should now work if you have the Metrowerks development environment and the missing Mac-specific toolkit bits. Contact the macperl mailing list for details.</p>

</li>
<li><p>MPE/iX</p>

<p>MPE/iX update after Perl 5.6.0. See README.mpeix. [561]</p>

</li>
<li><p>NetBSD/threads: try installing the GNU pth (should be in the packages collection, or http://www.gnu.org/software/pth/), and Configure with -Duseithreads.</p>

</li>
<li><p>NetBSD/sparc</p>

<p>Perl now works on NetBSD/sparc.</p>

</li>
<li><p>OS/2</p>

<p>Now works with usethreads (see INSTALL). [561]</p>

</li>
<li><p>Solaris</p>

<p>64-bitness using the Sun Workshop compiler now works.</p>

</li>
<li><p>Stratus VOS</p>

<p>The native build method requires at least VOS Release 14.5.0 and GNU C++/GNU Tools 2.0.1 or later. The Perl pack function now maps overflowed values to +infinity and underflowed values to -infinity.</p>

</li>
<li><p>Tru64 (aka Digital UNIX, aka DEC OSF/1)</p>

<p>The operating system version letter now recorded in $Config{osvers}. Allow compiling with gcc (previously explicitly forbidden). Compiling with gcc still not recommended because buggy code results, even with gcc 2.95.2.</p>

</li>
<li><p>Unicos</p>

<p>Fixed various alignment problems that lead into core dumps either during build or later; no longer dies on math errors at runtime; now using full quad integers (64 bits), previously was using only 46 bit integers for speed.</p>

</li>
<li><p>VMS</p>

<p>See <a href="perl58delta.html#Socket-Extension-Dynamic-in-VMS">&quot;Socket Extension Dynamic in VMS&quot;</a> and <a href="perl58delta.html#IEEE-format-Floating-Point-Default-on-OpenVMS-Alpha">&quot;IEEE-format Floating Point Default on OpenVMS Alpha&quot;</a> for important changes not otherwise listed here.</p>

<p>chdir() now works better despite a CRT bug; now works with MULTIPLICITY (see INSTALL); now works with Perl&#39;s malloc.</p>

<p>The tainting of <code>%ENV</code> elements via <code>keys</code> or <code>values</code> was previously unimplemented. It now works as documented.</p>

<p>The <code>waitpid</code> emulation has been improved. The worst bug (now fixed) was that a pid of -1 would cause a wildcard search of all processes on the system.</p>

<p>POSIX-style signals are now emulated much better on VMS versions prior to 7.0.</p>

<p>The <code>system</code> function and backticks operator have improved functionality and better error handling. [561]</p>

<p>File access tests now use current process privileges rather than the user&#39;s default privileges, which could sometimes result in a mismatch between reported access and actual access. This improvement is only available on VMS v6.0 and later.</p>

<p>There is a new <code>kill</code> implementation based on <code>sys$sigprc</code> that allows older VMS systems (pre-7.0) to use <code>kill</code> to send signals rather than simply force exit. This implementation also allows later systems to call <code>kill</code> from within a signal handler.</p>

<p>Iterative logical name translations are now limited to 10 iterations in imitation of SHOW LOGICAL and other OpenVMS facilities.</p>

</li>
<li><p>Windows</p>

<ul>

<li><p>Signal handling now works better than it used to. It is now implemented using a Windows message loop, and is therefore less prone to random crashes.</p>

</li>
<li><p>fork() emulation is now more robust, but still continues to have a few esoteric bugs and caveats. See <a href="perlfork.html">perlfork</a> for details. [561+]</p>

</li>
<li><p>A failed (pseudo)fork now returns undef and sets errno to EAGAIN. [561]</p>

</li>
<li><p>The following modules now work on Windows:</p>

<pre><code class="plaintext">ExtUtils::Embed         [561]
IO::Pipe
IO::Poll
Net::Ping</code></pre>

</li>
<li><p>IO::File::new_tmpfile() is no longer limited to 32767 invocations per-process.</p>

</li>
<li><p>Better chdir() return value for a non-existent directory.</p>

</li>
<li><p>Compiling perl using the 64-bit Platform SDK tools is now supported.</p>

</li>
<li><p>The Win32::SetChildShowWindow() builtin can be used to control the visibility of windows created by child processes. See <a href="Win32.html">Win32</a> for details.</p>

</li>
<li><p>Non-blocking waits for child processes (or pseudo-processes) are supported via <code>waitpid($pid, &amp;POSIX::WNOHANG)</code>.</p>

</li>
<li><p>The behavior of system() with multiple arguments has been rationalized. Each unquoted argument will be automatically quoted to protect whitespace, and any existing whitespace in the arguments will be preserved. This improves the portability of system(@args) by avoiding the need for Windows <code>cmd</code> shell specific quoting in perl programs.</p>

<p>Note that this means that some scripts that may have relied on earlier buggy behavior may no longer work correctly. For example, <code>system(&quot;nmake /nologo&quot;, @args)</code> will now attempt to run the file <code>nmake /nologo</code> and will fail when such a file isn&#39;t found. On the other hand, perl will now execute code such as <code>system(&quot;c:/Program Files/MyApp/foo.exe&quot;, @args)</code> correctly.</p>

</li>
<li><p>The perl header files no longer suppress common warnings from the Microsoft Visual C++ compiler. This means that additional warnings may now show up when compiling XS code.</p>

</li>
<li><p>Borland C++ v5.5 is now a supported compiler that can build Perl. However, the generated binaries continue to be incompatible with those generated by the other supported compilers (GCC and Visual C++). [561]</p>

</li>
<li><p>Duping socket handles with open(F, &quot;&gt;&amp;MYSOCK&quot;) now works under Windows 9x. [561]</p>

</li>
<li><p>Current directory entries in %ENV are now correctly propagated to child processes. [561]</p>

</li>
<li><p>New %ENV entries now propagate to subprocesses. [561]</p>

</li>
<li><p>Win32::GetCwd() correctly returns C:\ instead of C: when at the drive root. Other bugs in chdir() and Cwd::cwd() have also been fixed. [561]</p>

</li>
<li><p>The makefiles now default to the features enabled in ActiveState ActivePerl (a popular Win32 binary distribution). [561]</p>

</li>
<li><p>HTML files will now be installed in c:\perl\html instead of c:\perl\lib\pod\html</p>

</li>
<li><p>REG_EXPAND_SZ keys are now allowed in registry settings used by perl. [561]</p>

</li>
<li><p>Can now send() from all threads, not just the first one. [561]</p>

</li>
<li><p>ExtUtils::MakeMaker now uses $ENV{LIB} to search for libraries. [561]</p>

</li>
<li><p>Less stack reserved per thread so that more threads can run concurrently. (Still 16M per thread.) [561]</p>

</li>
<li><p><code>File::Spec-&gt;tmpdir()</code> now prefers C:/temp over /tmp (works better when perl is running as service).</p>

</li>
<li><p>Better UNC path handling under ithreads. [561]</p>

</li>
<li><p>wait(), waitpid(), and backticks now return the correct exit status under Windows 9x. [561]</p>

</li>
<li><p>A socket handle leak in accept() has been fixed. [561]</p>

</li>
</ul>

</li>
</ul>

<h1 id="New-or-Changed-Diagnostics"><a class="permalink" href="perl58delta.html#New-or-Changed-Diagnostics">#</a><a id="New5"></a>New or Changed Diagnostics</h1>

<p>Please see <a href="perldiag.html">perldiag</a> for more details.</p>

<ul>

<li><p>Ambiguous range in the transliteration operator (like a-z-9) now gives a warning.</p>

</li>
<li><p>chdir(&quot;&quot;) and chdir(undef) now give a deprecation warning because they cause a possible unintentional chdir to the home directory. Say chdir() if you really mean that.</p>

</li>
<li><p>Two new debugging options have been added: if you have compiled your Perl with debugging, you can use the -DT [561] and -DR options to trace tokenising and to add reference counts to displaying variables, respectively.</p>

</li>
<li><p>The lexical warnings category &quot;deprecated&quot; is no longer a sub-category of the &quot;syntax&quot; category. It is now a top-level category in its own right.</p>

</li>
<li><p>Unadorned dump() will now give a warning suggesting to use explicit CORE::dump() if that&#39;s what really is meant.</p>

</li>
<li><p>The &quot;Unrecognized escape&quot; warning has been extended to include <code>\8</code>, <code>\9</code>, and <code>\_</code>. There is no need to escape any of the <code>\w</code> characters.</p>

</li>
<li><p>All regular expression compilation error messages are now hopefully easier to understand both because the error message now comes before the failed regex and because the point of failure is now clearly marked by a <code>&lt;-- HERE</code> marker.</p>

</li>
<li><p>Various I/O (and socket) functions like binmode(), close(), and so forth now more consistently warn if they are used illogically either on a yet unopened or on an already closed filehandle (or socket).</p>

</li>
<li><p>Using lstat() on a filehandle now gives a warning. (It&#39;s a non-sensical thing to do.)</p>

</li>
<li><p>The <code>-M</code> and <code>-m</code> options now warn if you didn&#39;t supply the module name.</p>

</li>
<li><p>If you in <code>use</code> specify a required minimum version, modules matching the name and but not defining a $VERSION will cause a fatal failure.</p>

</li>
<li><p>Using negative offset for vec() in lvalue context is now a warnable offense.</p>

</li>
<li><p>Odd number of arguments to overload::constant now elicits a warning.</p>

</li>
<li><p>Odd number of elements in anonymous hash now elicits a warning.</p>

</li>
<li><p>The various &quot;opened only for&quot;, &quot;on closed&quot;, &quot;never opened&quot; warnings drop the <code>main::</code> prefix for filehandles in the <code>main</code> package, for example <code>STDIN</code> instead of <code>main::STDIN</code>.</p>

</li>
<li><p>Subroutine prototypes are now checked more carefully, you may get warnings for example if you have used non-prototype characters.</p>

</li>
<li><p>If an attempt to use a (non-blessed) reference as an array index is made, a warning is given.</p>

</li>
<li><p><code>push @a;</code> and <code>unshift @a;</code> (with no values to push or unshift) now give a warning. This may be a problem for generated and eval&#39;ed code.</p>

</li>
<li><p>If you try to <a href="perlfunc.html#pack">&quot;pack&quot; in perlfunc</a> a number less than 0 or larger than 255 using the <code>&quot;C&quot;</code> format you will get an optional warning. Similarly for the <code>&quot;c&quot;</code> format and a number less than -128 or more than 127.</p>

</li>
<li><p>pack <code>P</code> format now demands an explicit size.</p>

</li>
<li><p>unpack <code>w</code> now warns of unterminated compressed integers.</p>

</li>
<li><p>Warnings relating to the use of PerlIO have been added.</p>

</li>
<li><p>Certain regex modifiers such as <code>(?o)</code> make sense only if applied to the entire regex. You will get an optional warning if you try to do otherwise.</p>

</li>
<li><p>Variable length lookbehind has not yet been implemented, trying to use it will tell that.</p>

</li>
<li><p>Using arrays or hashes as references (e.g. <code>%foo-&gt;{bar}</code> has been deprecated for a while. Now you will get an optional warning.</p>

</li>
<li><p>Warnings relating to the use of the new restricted hashes feature have been added.</p>

</li>
<li><p>Self-ties of arrays and hashes are not supported and fatal errors will happen even at an attempt to do so.</p>

</li>
<li><p>Using <code>sort</code> in scalar context now issues an optional warning. This didn&#39;t do anything useful, as the sort was not performed.</p>

</li>
<li><p>Using the /g modifier in split() is meaningless and will cause a warning.</p>

</li>
<li><p>Using splice() past the end of an array now causes a warning.</p>

</li>
<li><p>Malformed Unicode encodings (UTF-8 and UTF-16) cause a lot of warnings, as does trying to use UTF-16 surrogates (which are unimplemented).</p>

</li>
<li><p>Trying to use Unicode characters on an I/O stream without marking the stream&#39;s encoding (using open() or binmode()) will cause &quot;Wide character&quot; warnings.</p>

</li>
<li><p>Use of v-strings in use/require causes a (backward) portability warning.</p>

</li>
<li><p>Warnings relating to the use interpreter threads and their shared data have been added.</p>

</li>
</ul>

<h1 id="Changed-Internals"><a class="permalink" href="perl58delta.html#Changed-Internals">#</a><a id="Changed"></a>Changed Internals</h1>

<ul>

<li><p>PerlIO is now the default.</p>

</li>
<li><p>perlapi.pod (a companion to perlguts) now attempts to document the internal API.</p>

</li>
<li><p>You can now build a really minimal perl called microperl. Building microperl does not require even running Configure; <code>make -f Makefile.micro</code> should be enough. Beware: microperl makes many assumptions, some of which may be too bold; the resulting executable may crash or otherwise misbehave in wondrous ways. For careful hackers only.</p>

</li>
<li><p>Added rsignal(), whichsig(), do_join(), op_clear, op_null, ptr_table_clear(), ptr_table_free(), sv_setref_uv(), and several UTF-8 interfaces to the publicised API. For the full list of the available APIs see <a href="perlapi.html">perlapi</a>.</p>

</li>
<li><p>Made possible to propagate customised exceptions via croak()ing.</p>

</li>
<li><p>Now xsubs can have attributes just like subs. (Well, at least the built-in attributes.)</p>

</li>
<li><p>dTHR and djSP have been obsoleted; the former removed (because it&#39;s a no-op) and the latter replaced with dSP.</p>

</li>
<li><p>PERL_OBJECT has been completely removed.</p>

</li>
<li><p>The MAGIC constants (e.g. <code>&#39;P&#39;</code>) have been macrofied (e.g. <code>PERL_MAGIC_TIED</code>) for better source code readability and maintainability.</p>

</li>
<li><p>The regex compiler now maintains a structure that identifies nodes in the compiled bytecode with the corresponding syntactic features of the original regex expression. The information is attached to the new <code>offsets</code> member of the <code>struct regexp</code>. See <a href="perldebguts.html">perldebguts</a> for more complete information.</p>

</li>
<li><p>The C code has been made much more <code>gcc -Wall</code> clean. Some warning messages still remain in some platforms, so if you are compiling with gcc you may see some warnings about dubious practices. The warnings are being worked on.</p>

</li>
<li><p><i>perly.c</i>, <i>sv.c</i>, and <i>sv.h</i> have now been extensively commented.</p>

</li>
<li><p>Documentation on how to use the Perl source repository has been added to <i>Porting/repository.pod</i>.</p>

</li>
<li><p>There are now several profiling make targets.</p>

</li>
</ul>

<h1 id="Security-Vulnerability-Closed-[561]"><a class="permalink" href="perl58delta.html#Security-Vulnerability-Closed-%5B561%5D">#</a><a id="Security"></a><a id="Security-Vulnerability-Closed-561"></a>Security Vulnerability Closed [561]</h1>

<p>(This change was already made in 5.7.0 but bears repeating here.) (5.7.0 came out before 5.6.1: the development branch 5.7 released earlier than the maintenance branch 5.6)</p>

<p>A potential security vulnerability in the optional suidperl component of Perl was identified in August 2000. suidperl is neither built nor installed by default. As of November 2001 the only known vulnerable platform is Linux, most likely all Linux distributions. CERT and various vendors and distributors have been alerted about the vulnerability. See http://www.cpan.org/src/5.0/sperl-2000-08-05/sperl-2000-08-05.txt for more information.</p>

<p>The problem was caused by Perl trying to report a suspected security exploit attempt using an external program, /bin/mail. On Linux platforms the /bin/mail program had an undocumented feature which when combined with suidperl gave access to a root shell, resulting in a serious compromise instead of reporting the exploit attempt. If you don&#39;t have /bin/mail, or if you have &#39;safe setuid scripts&#39;, or if suidperl is not installed, you are safe.</p>

<p>The exploit attempt reporting feature has been completely removed from Perl 5.8.0 (and the maintenance release 5.6.1, and it was removed also from all the Perl 5.7 releases), so that particular vulnerability isn&#39;t there anymore. However, further security vulnerabilities are, unfortunately, always possible. The suidperl functionality is most probably going to be removed in Perl 5.10. In any case, suidperl should only be used by security experts who know exactly what they are doing and why they are using suidperl instead of some other solution such as sudo ( see http://www.courtesan.com/sudo/ ).</p>

<h1 id="New-Tests"><a class="permalink" href="perl58delta.html#New-Tests">#</a><a id="New6"></a>New Tests</h1>

<p>Several new tests have been added, especially for the <i>lib</i> and <i>ext</i> subsections. There are now about 69 000 individual tests (spread over about 700 test scripts), in the regression suite (5.6.1 has about 11 700 tests, in 258 test scripts) The exact numbers depend on the platform and Perl configuration used. Many of the new tests are of course introduced by the new modules, but still in general Perl is now more thoroughly tested.</p>

<p>Because of the large number of tests, running the regression suite will take considerably longer time than it used to: expect the suite to take up to 4-5 times longer to run than in perl 5.6. On a really fast machine you can hope to finish the suite in about 6-8 minutes (wallclock time).</p>

<p>The tests are now reported in a different order than in earlier Perls. (This happens because the test scripts from under t/lib have been moved to be closer to the library/extension they are testing.)</p>

<h1 id="Known-Problems"><a class="permalink" href="perl58delta.html#Known-Problems">#</a><a id="Known"></a>Known Problems</h1>

<h2 id="The-Compiler-Suite-Is-Still-Very-Experimental"><a class="permalink" href="perl58delta.html#The-Compiler-Suite-Is-Still-Very-Experimental">#</a><a id="The"></a>The Compiler Suite Is Still Very Experimental</h2>

<p>The compiler suite is slowly getting better but it continues to be highly experimental. Use in production environments is discouraged.</p>

<h2 id="Localising-Tied-Arrays-and-Hashes-Is-Broken"><a class="permalink" href="perl58delta.html#Localising-Tied-Arrays-and-Hashes-Is-Broken">#</a><a id="Localising"></a>Localising Tied Arrays and Hashes Is Broken</h2>

<pre><code>local %tied_array;</code></pre>

<p>doesn&#39;t work as one would expect: the old value is restored incorrectly. This will be changed in a future release, but we don&#39;t know yet what the new semantics will exactly be. In any case, the change will break existing code that relies on the current (ill-defined) semantics, so just avoid doing this in general.</p>

<h2 id="Building-Extensions-Can-Fail-Because-Of-Largefiles"><a class="permalink" href="perl58delta.html#Building-Extensions-Can-Fail-Because-Of-Largefiles">#</a><a id="Building"></a>Building Extensions Can Fail Because Of Largefiles</h2>

<p>Some extensions like mod_perl are known to have issues with `largefiles&#39;, a change brought by Perl 5.6.0 in which file offsets default to 64 bits wide, where supported. Modules may fail to compile at all, or they may compile and work incorrectly. Currently, there is no good solution for the problem, but Configure now provides appropriate non-largefile ccflags, ldflags, libswanted, and libs in the %Config hash (e.g., $Config{ccflags_nolargefiles}) so the extensions that are having problems can try configuring themselves without the largefileness. This is admittedly not a clean solution, and the solution may not even work at all. One potential failure is whether one can (or, if one can, whether it&#39;s a good idea to) link together at all binaries with different ideas about file offsets; all this is platform-dependent.</p>

<h2 id="Modifying-$_-Inside-for(..)"><a class="permalink" href="perl58delta.html#Modifying-$_-Inside-for(..)">#</a><a id="Modifying"></a><a id="Modifying-_-Inside-for"></a>Modifying $_ Inside for(..)</h2>

<pre><code>for (1..5) { $_++ }</code></pre>

<p>works without complaint. It shouldn&#39;t. (You should be able to modify only lvalue elements inside the loops.) You can see the correct behaviour by replacing the 1..5 with 1, 2, 3, 4, 5.</p>

<h2 id="mod_perl-1.26-Doesn&#39;t-Build-With-Threaded-Perl"><a class="permalink" href="perl58delta.html#mod_perl-1.26-Doesn&#39;t-Build-With-Threaded-Perl">#</a><a id="mod_perl"></a><a id="mod_perl-1.26-Doesnt-Build-With-Threaded-Perl"></a>mod_perl 1.26 Doesn&#39;t Build With Threaded Perl</h2>

<p>Use mod_perl 1.27 or higher.</p>

<h2 id="lib/ftmp-security-tests-warn-&#39;system-possibly-insecure&#39;"><a class="permalink" href="perl58delta.html#lib/ftmp-security-tests-warn-&#39;system-possibly-insecure&#39;">#</a><a id="lib"></a><a id="lib-ftmp-security-tests-warn-system-possibly-insecure"></a>lib/ftmp-security tests warn &#39;system possibly insecure&#39;</h2>

<p>Don&#39;t panic. Read the &#39;make test&#39; section of INSTALL instead.</p>

<h2 id="libwww-perl-(LWP)-fails-base/date-#51"><a class="permalink" href="perl58delta.html#libwww-perl-(LWP)-fails-base/date-%2351">#</a><a id="libwww"></a><a id="libwww-perl-LWP-fails-base-date-51"></a>libwww-perl (LWP) fails base/date #51</h2>

<p>Use libwww-perl 5.65 or later.</p>

<h2 id="PDL-failing-some-tests"><a class="permalink" href="perl58delta.html#PDL-failing-some-tests">#</a><a id="PDL"></a>PDL failing some tests</h2>

<p>Use PDL 2.3.4 or later.</p>

<h2 id="Perl_get_sv"><a class="permalink" href="perl58delta.html#Perl_get_sv">#</a>Perl_get_sv</h2>

<p>You may get errors like &#39;Undefined symbol &quot;Perl_get_sv&quot;&#39; or &quot;can&#39;t resolve symbol &#39;Perl_get_sv&#39;&quot;, or the symbol may be &quot;Perl_sv_2pv&quot;. This probably means that you are trying to use an older shared Perl library (or extensions linked with such) with Perl 5.8.0 executable. Perl used to have such a subroutine, but that is no more the case. Check your shared library path, and any shared Perl libraries in those directories.</p>

<p>Sometimes this problem may also indicate a partial Perl 5.8.0 installation, see <a href="perl58delta.html#Mac-OS-X-dyld-undefined-symbols">&quot;Mac OS X dyld undefined symbols&quot;</a> for an example and how to deal with it.</p>

<h2 id="Self-tying-Problems"><a class="permalink" href="perl58delta.html#Self-tying-Problems">#</a><a id="Self"></a>Self-tying Problems</h2>

<p>Self-tying of arrays and hashes is broken in rather deep and hard-to-fix ways. As a stop-gap measure to avoid people from getting frustrated at the mysterious results (core dumps, most often), it is forbidden for now (you will get a fatal error even from an attempt).</p>

<p>A change to self-tying of globs has caused them to be recursively referenced (see: <a href="perlobj.html#Two-Phased-Garbage-Collection">&quot;Two-Phased Garbage Collection&quot; in perlobj</a>). You will now need an explicit untie to destroy a self-tied glob. This behaviour may be fixed at a later date.</p>

<p>Self-tying of scalars and IO thingies works.</p>

<h2 id="ext/threads/t/libc"><a class="permalink" href="perl58delta.html#ext/threads/t/libc">#</a><a id="ext"></a><a id="ext-threads-t-libc"></a>ext/threads/t/libc</h2>

<p>If this test fails, it indicates that your libc (C library) is not threadsafe. This particular test stress tests the localtime() call to find out whether it is threadsafe. See <a href="perlthrtut.html">perlthrtut</a> for more information.</p>

<h2 id="Failure-of-Thread-(5.005-style)-tests"><a class="permalink" href="perl58delta.html#Failure-of-Thread-(5.005-style)-tests">#</a><a id="Failure"></a><a id="Failure-of-Thread-5.005-style-tests"></a>Failure of Thread (5.005-style) tests</h2>

<p><b>Note that support for 5.005-style threading is deprecated, experimental and practically unsupported. In 5.10, it is expected to be removed. You should migrate your code to ithreads.</b></p>

<p>The following tests are known to fail due to fundamental problems in the 5.005 threading implementation. These are not new failures--Perl 5.005_0x has the same bugs, but didn&#39;t have these tests.</p>

<pre><code class="plaintext">../ext/B/t/xref.t                    255 65280    14   12  85.71%  3-14
../ext/List/Util/t/first.t           255 65280     7    4  57.14%  2 5-7
../lib/English.t                       2   512    54    2   3.70%  2-3
../lib/FileCache.t                                 5    1  20.00%  5
../lib/Filter/Simple/t/data.t                      6    3  50.00%  1-3
../lib/Filter/Simple/t/filter_only.                9    3  33.33%  1-2 5
../lib/Math/BigInt/t/bare_mbf.t                 1627    4   0.25%  8 11 1626-1627
../lib/Math/BigInt/t/bigfltpm.t                 1629    4   0.25%  10 13 1628-
                                                                   1629
../lib/Math/BigInt/t/sub_mbf.t                  1633    4   0.24%  8 11 1632-1633
../lib/Math/BigInt/t/with_sub.t                 1628    4   0.25%  9 12 1627-1628
../lib/Tie/File/t/31_autodefer.t     255 65280    65   32  49.23%  34-65
../lib/autouse.t                                  10    1  10.00%  4
op/flip.t                                         15    1   6.67%  15</code></pre>

<p>These failures are unlikely to get fixed as 5.005-style threads are considered fundamentally broken. (Basically what happens is that competing threads can corrupt shared global state, one good example being regular expression engine&#39;s state.)</p>

<h2 id="Timing-problems"><a class="permalink" href="perl58delta.html#Timing-problems">#</a><a id="Timing"></a>Timing problems</h2>

<p>The following tests may fail intermittently because of timing problems, for example if the system is heavily loaded.</p>

<pre><code class="plaintext">t/op/alarm.t
ext/Time/HiRes/HiRes.t
lib/Benchmark.t
lib/Memoize/t/expmod_t.t
lib/Memoize/t/speed.t</code></pre>

<p>In case of failure please try running them manually, for example</p>

<pre><code class="plaintext">./perl -Ilib ext/Time/HiRes/HiRes.t</code></pre>

<h2 id="Tied/Magical-Array/Hash-Elements-Do-Not-Autovivify"><a class="permalink" href="perl58delta.html#Tied/Magical-Array/Hash-Elements-Do-Not-Autovivify">#</a><a id="Tied"></a><a id="Tied-Magical-Array-Hash-Elements-Do-Not-Autovivify"></a>Tied/Magical Array/Hash Elements Do Not Autovivify</h2>

<p>For normal arrays <code>$foo = \$bar[1]</code> will assign <code>undef</code> to <code>$bar[1]</code> (assuming that it didn&#39;t exist before), but for tied/magical arrays and hashes such autovivification does not happen because there is currently no way to catch the reference creation. The same problem affects slicing over non-existent indices/keys of a tied/magical array/hash.</p>

<h2 id="Unicode-in-package/class-and-subroutine-names-does-not-work"><a class="permalink" href="perl58delta.html#Unicode-in-package/class-and-subroutine-names-does-not-work">#</a><a id="Unicode1"></a><a id="Unicode-in-package-class-and-subroutine-names-does-not-work"></a>Unicode in package/class and subroutine names does not work</h2>

<p>One can have Unicode in identifier names, but not in package/class or subroutine names. While some limited functionality towards this does exist as of Perl 5.8.0, that is more accidental than designed; use of Unicode for the said purposes is unsupported.</p>

<p>One reason of this unfinishedness is its (currently) inherent unportability: since both package names and subroutine names may need to be mapped to file and directory names, the Unicode capability of the filesystem becomes important-- and there unfortunately aren&#39;t portable answers.</p>

<h1 id="Platform-Specific-Problems"><a class="permalink" href="perl58delta.html#Platform-Specific-Problems">#</a><a id="Platform1"></a>Platform Specific Problems</h1>

<h2 id="AIX"><a class="permalink" href="perl58delta.html#AIX">#</a>AIX</h2>

<ul>

<li><p>If using the AIX native make command, instead of just &quot;make&quot; issue &quot;make all&quot;. In some setups the former has been known to spuriously also try to run &quot;make install&quot;. Alternatively, you may want to use GNU make.</p>

</li>
<li><p>In AIX 4.2, Perl extensions that use C++ functions that use statics may have problems in that the statics are not getting initialized. In newer AIX releases, this has been solved by linking Perl with the libC_r library, but unfortunately in AIX 4.2 the said library has an obscure bug where the various functions related to time (such as time() and gettimeofday()) return broken values, and therefore in AIX 4.2 Perl is not linked against libC_r.</p>

</li>
<li><p>vac 5.0.0.0 May Produce Buggy Code For Perl</p>

<p>The AIX C compiler vac version 5.0.0.0 may produce buggy code, resulting in a few random tests failing when run as part of &quot;make test&quot;, but when the failing tests are run by hand, they succeed. We suggest upgrading to at least vac version 5.0.1.0, that has been known to compile Perl correctly. &quot;lslpp -L|grep vac.C&quot; will tell you the vac version. See README.aix.</p>

</li>
<li><p>If building threaded Perl, you may get compilation warning from pp_sys.c:</p>

<pre><code class="plaintext">&quot;pp_sys.c&quot;, line 4651.39: 1506-280 (W) Function argument assignment between types &quot;unsigned char*&quot; and &quot;const void*&quot; is not allowed.</code></pre>

<p>This is harmless; it is caused by the getnetbyaddr() and getnetbyaddr_r() having slightly different types for their first argument.</p>

</li>
</ul>

<h2 id="Alpha-systems-with-old-gccs-fail-several-tests"><a class="permalink" href="perl58delta.html#Alpha-systems-with-old-gccs-fail-several-tests">#</a><a id="Alpha"></a>Alpha systems with old gccs fail several tests</h2>

<p>If you see op/pack, op/pat, op/regexp, or ext/Storable tests failing in a Linux/alpha or *BSD/Alpha, it&#39;s probably time to upgrade your gcc. gccs prior to 2.95.3 are definitely not good enough, and gcc 3.1 may be even better. (RedHat Linux/alpha with gcc 3.1 reported no problems, as did Linux 2.4.18 with gcc 2.95.4.) (In Tru64, it is preferable to use the bundled C compiler.)</p>

<h2 id="AmigaOS"><a class="permalink" href="perl58delta.html#AmigaOS">#</a>AmigaOS</h2>

<p>Perl 5.8.0 doesn&#39;t build in AmigaOS. It broke at some point during the ithreads work and we could not find Amiga experts to unbreak the problems. Perl 5.6.1 still works for AmigaOS (as does the 5.7.2 development release).</p>

<h2 id="BeOS"><a class="permalink" href="perl58delta.html#BeOS">#</a>BeOS</h2>

<p>The following tests fail on 5.8.0 Perl in BeOS Personal 5.03:</p>

<pre><code class="plaintext">t/op/lfs............................FAILED at test 17
t/op/magic..........................FAILED at test 24
ext/Fcntl/t/syslfs..................FAILED at test 17
ext/File/Glob/t/basic...............FAILED at test 3
ext/POSIX/t/sigaction...............FAILED at test 13
ext/POSIX/t/waitpid.................FAILED at test 1</code></pre>

<p>(<b>Note:</b> more information was available in <i>README.beos</i> until support for BeOS was removed in Perl v5.18.0)</p>

<h2 id="Cygwin-&quot;unable-to-remap&quot;"><a class="permalink" href="perl58delta.html#Cygwin-%22unable-to-remap%22">#</a><a id="Cygwin"></a><a id="Cygwin-unable-to-remap"></a>Cygwin &quot;unable to remap&quot;</h2>

<p>For example when building the Tk extension for Cygwin, you may get an error message saying &quot;unable to remap&quot;. This is known problem with Cygwin, and a workaround is detailed in here: http://sources.redhat.com/ml/cygwin/2001-12/msg00894.html</p>

<h2 id="Cygwin-ndbm-tests-fail-on-FAT"><a class="permalink" href="perl58delta.html#Cygwin-ndbm-tests-fail-on-FAT">#</a><a id="Cygwin1"></a>Cygwin ndbm tests fail on FAT</h2>

<p>One can build but not install (or test the build of) the NDBM_File on FAT filesystems. Installation (or build) on NTFS works fine. If one attempts the test on a FAT install (or build) the following failures are expected:</p>

<pre><code class="plaintext">../ext/NDBM_File/ndbm.t       13  3328    71   59  83.10%  1-2 4 16-71
../ext/ODBM_File/odbm.t      255 65280    ??   ??       %  ??
../lib/AnyDBM_File.t           2   512    12    2  16.67%  1 4
../lib/Memoize/t/errors.t      0   139    11    5  45.45%  7-11
../lib/Memoize/t/tie_ndbm.t   13  3328     4    4 100.00%  1-4
run/fresh_perl.t                          97    1   1.03%  91</code></pre>

<p>NDBM_File fails and ODBM_File just coredumps.</p>

<p>If you intend to run only on FAT (or if using AnyDBM_File on FAT), run Configure with the -Ui_ndbm and -Ui_dbm options to prevent NDBM_File and ODBM_File being built.</p>

<h2 id="DJGPP-Failures"><a class="permalink" href="perl58delta.html#DJGPP-Failures">#</a><a id="DJGPP"></a>DJGPP Failures</h2>

<pre><code class="plaintext">t/op/stat............................FAILED at test 29
lib/File/Find/t/find.................FAILED at test 1
lib/File/Find/t/taint................FAILED at test 1
lib/h2xs.............................FAILED at test 15
lib/Pod/t/eol........................FAILED at test 1
lib/Test/Harness/t/strap-analyze.....FAILED at test 8
lib/Test/Harness/t/test-harness......FAILED at test 23
lib/Test/Simple/t/exit...............FAILED at test 1</code></pre>

<p>The above failures are known as of 5.8.0 with native builds with long filenames, but there are a few more if running under dosemu because of limitations (and maybe bugs) of dosemu:</p>

<pre><code class="plaintext">t/comp/cpp...........................FAILED at test 3
t/op/inccode.........................(crash)</code></pre>

<p>and a few lib/ExtUtils tests, and several hundred Encode/t/Aliases.t failures that work fine with long filenames. So you really might prefer native builds and long filenames.</p>

<h2 id="FreeBSD-built-with-ithreads-coredumps-reading-large-directories"><a class="permalink" href="perl58delta.html#FreeBSD-built-with-ithreads-coredumps-reading-large-directories">#</a><a id="FreeBSD"></a>FreeBSD built with ithreads coredumps reading large directories</h2>

<p>This is a known bug in FreeBSD 4.5&#39;s readdir_r(), it has been fixed in FreeBSD 4.6 (see <a href="perlfreebsd.html">perlfreebsd</a> (README.freebsd)).</p>

<h2 id="FreeBSD-Failing-locale-Test-117-For-ISO-8859-15-Locales"><a class="permalink" href="perl58delta.html#FreeBSD-Failing-locale-Test-117-For-ISO-8859-15-Locales">#</a><a id="FreeBSD1"></a>FreeBSD Failing locale Test 117 For ISO 8859-15 Locales</h2>

<p>The ISO 8859-15 locales may fail the locale test 117 in FreeBSD. This is caused by the characters \xFF (y with diaeresis) and \xBE (Y with diaeresis) not behaving correctly when being matched case-insensitively. Apparently this problem has been fixed in the latest FreeBSD releases. ( http://www.freebsd.org/cgi/query-pr.cgi?pr=34308 )</p>

<h2 id="IRIX-fails-ext/List/Util/t/shuffle.t-or-Digest::MD5"><a class="permalink" href="perl58delta.html#IRIX-fails-ext/List/Util/t/shuffle.t-or-Digest::MD5">#</a><a id="IRIX"></a><a id="IRIX-fails-ext-List-Util-t-shuffle.t-or-Digest::MD5"></a>IRIX fails ext/List/Util/t/shuffle.t or Digest::MD5</h2>

<p>IRIX with MIPSpro 7.3.1.2m or 7.3.1.3m compiler may fail the List::Util test ext/List/Util/t/shuffle.t by dumping core. This seems to be a compiler error since if compiled with gcc no core dump ensues, and no failures have been seen on the said test on any other platform.</p>

<p>Similarly, building the Digest::MD5 extension has been known to fail with &quot;*** Termination code 139 (bu21)&quot;.</p>

<p>The cure is to drop optimization level (Configure -Doptimize=-O2).</p>

<h2 id="HP-UX-lib/posix-Subtest-9-Fails-When-LP64-Configured"><a class="permalink" href="perl58delta.html#HP-UX-lib/posix-Subtest-9-Fails-When-LP64-Configured">#</a><a id="HP"></a><a id="HP-UX-lib-posix-Subtest-9-Fails-When-LP64-Configured"></a>HP-UX lib/posix Subtest 9 Fails When LP64-Configured</h2>

<p>If perl is configured with -Duse64bitall, the successful result of the subtest 10 of lib/posix may arrive before the successful result of the subtest 9, which confuses the test harness so much that it thinks the subtest 9 failed.</p>

<h2 id="Linux-with-glibc-2.2.5-fails-t/op/int-subtest-#6-with-Duse64bitint"><a class="permalink" href="perl58delta.html#Linux-with-glibc-2.2.5-fails-t/op/int-subtest-%236-with-Duse64bitint">#</a><a id="Linux"></a><a id="Linux-with-glibc-2.2.5-fails-t-op-int-subtest-6-with--Duse64bitint"></a>Linux with glibc 2.2.5 fails t/op/int subtest #6 with -Duse64bitint</h2>

<p>This is a known bug in the glibc 2.2.5 with long long integers. ( http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=65612 )</p>

<h2 id="Linux-With-Sfio-Fails-op/misc-Test-48"><a class="permalink" href="perl58delta.html#Linux-With-Sfio-Fails-op/misc-Test-48">#</a><a id="Linux1"></a><a id="Linux-With-Sfio-Fails-op-misc-Test-48"></a>Linux With Sfio Fails op/misc Test 48</h2>

<p>No known fix.</p>

<h2 id="Mac-OS-X"><a class="permalink" href="perl58delta.html#Mac-OS-X">#</a><a id="Mac"></a>Mac OS X</h2>

<p>Please remember to set your environment variable LC_ALL to &quot;C&quot; (setenv LC_ALL C) before running &quot;make test&quot; to avoid a lot of warnings about the broken locales of Mac OS X.</p>

<p>The following tests are known to fail in Mac OS X 10.1.5 because of buggy (old) implementations of Berkeley DB included in Mac OS X:</p>

<pre><code class="plaintext">Failed Test                 Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------
../ext/DB_File/t/db-btree.t    0    11    ??   ??       %  ??
../ext/DB_File/t/db-recno.t              149    3   2.01%  61 63 65</code></pre>

<p>If you are building on a UFS partition, you will also probably see t/op/stat.t subtest #9 fail. This is caused by Darwin&#39;s UFS not supporting inode change time.</p>

<p>Also the ext/POSIX/t/posix.t subtest #10 fails but it is skipped for now because the failure is Apple&#39;s fault, not Perl&#39;s (blocked signals are lost).</p>

<p>If you Configure with ithreads, ext/threads/t/libc.t will fail. Again, this is not Perl&#39;s fault-- the libc of Mac OS X is not threadsafe (in this particular test, the localtime() call is found to be threadunsafe.)</p>

<h2 id="Mac-OS-X-dyld-undefined-symbols"><a class="permalink" href="perl58delta.html#Mac-OS-X-dyld-undefined-symbols">#</a><a id="Mac1"></a>Mac OS X dyld undefined symbols</h2>

<p>If after installing Perl 5.8.0 you are getting warnings about missing symbols, for example</p>

<pre><code class="plaintext">dyld: perl Undefined symbols
_perl_sv_2pv
_perl_get_sv</code></pre>

<p>you probably have an old pre-Perl-5.8.0 installation (or parts of one) in /Library/Perl (the undefined symbols used to exist in pre-5.8.0 Perls). It seems that for some reason &quot;make install&quot; doesn&#39;t always completely overwrite the files in /Library/Perl. You can move the old Perl shared library out of the way like this:</p>

<pre><code class="plaintext">cd /Library/Perl/darwin/CORE
mv libperl.dylib libperlold.dylib</code></pre>

<p>and then reissue &quot;make install&quot;. Note that the above of course is extremely disruptive for anything using the /usr/local/bin/perl. If that doesn&#39;t help, you may have to try removing all the .bundle files from beneath /Library/Perl, and again &quot;make install&quot;-ing.</p>

<h2 id="OS/2-Test-Failures"><a class="permalink" href="perl58delta.html#OS/2-Test-Failures">#</a><a id="OS"></a><a id="OS-2-Test-Failures"></a>OS/2 Test Failures</h2>

<p>The following tests are known to fail on OS/2 (for clarity only the failures are shown, not the full error messages):</p>

<pre><code class="plaintext">../lib/ExtUtils/t/Mkbootstrap.t    1   256    18    1   5.56%  8
../lib/ExtUtils/t/Packlist.t       1   256    34    1   2.94%  17
../lib/ExtUtils/t/basic.t          1   256    17    1   5.88%  14
lib/os2_process.t                  2   512   227    2   0.88%  174 209
lib/os2_process_kid.t                        227    2   0.88%  174 209
lib/rx_cmprt.t                   255 65280    18    3  16.67%  16-18</code></pre>

<h2 id="op/sprintf-tests-91,-129,-and-130"><a class="permalink" href="perl58delta.html#op/sprintf-tests-91,-129,-and-130">#</a><a id="op"></a><a id="op-sprintf-tests-91-129-and-130"></a>op/sprintf tests 91, 129, and 130</h2>

<p>The op/sprintf tests 91, 129, and 130 are known to fail on some platforms. Examples include any platform using sfio, and Compaq/Tandem&#39;s NonStop-UX.</p>

<p>Test 91 is known to fail on QNX6 (nto), because <code>sprintf &#39;%e&#39;,0</code> incorrectly produces <code>0.000000e+0</code> instead of <code>0.000000e+00</code>.</p>

<p>For tests 129 and 130, the failing platforms do not comply with the ANSI C Standard: lines 19ff on page 134 of ANSI X3.159 1989, to be exact. (They produce something other than &quot;1&quot; and &quot;-1&quot; when formatting 0.6 and -0.6 using the printf format &quot;%.0f&quot;; most often, they produce &quot;0&quot; and &quot;-0&quot;.)</p>

<h2 id="SCO"><a class="permalink" href="perl58delta.html#SCO">#</a>SCO</h2>

<p>The socketpair tests are known to be unhappy in SCO 3.2v5.0.4:</p>

<pre><code class="plaintext">ext/Socket/socketpair.t...............FAILED tests 15-45</code></pre>

<h2 id="Solaris-2.5"><a class="permalink" href="perl58delta.html#Solaris-2.5">#</a><a id="Solaris"></a>Solaris 2.5</h2>

<p>In case you are still using Solaris 2.5 (aka SunOS 5.5), you may experience failures (the test core dumping) in lib/locale.t. The suggested cure is to upgrade your Solaris.</p>

<h2 id="Solaris-x86-Fails-Tests-With-Duse64bitint"><a class="permalink" href="perl58delta.html#Solaris-x86-Fails-Tests-With-Duse64bitint">#</a><a id="Solaris1"></a><a id="Solaris-x86-Fails-Tests-With--Duse64bitint"></a>Solaris x86 Fails Tests With -Duse64bitint</h2>

<p>The following tests are known to fail in Solaris x86 with Perl configured to use 64 bit integers:</p>

<pre><code class="plaintext">ext/Data/Dumper/t/dumper.............FAILED at test 268
ext/Devel/Peek/Peek..................FAILED at test 7</code></pre>

<h2 id="SUPER-UX-(NEC-SX)"><a class="permalink" href="perl58delta.html#SUPER-UX-(NEC-SX)">#</a><a id="SUPER"></a><a id="SUPER-UX-NEC-SX"></a>SUPER-UX (NEC SX)</h2>

<p>The following tests are known to fail on SUPER-UX:</p>

<pre><code class="plaintext">op/64bitint...........................FAILED tests 29-30, 32-33, 35-36
op/arith..............................FAILED tests 128-130
op/pack...............................FAILED tests 25-5625
op/pow................................
op/taint..............................# msgsnd failed
../ext/IO/lib/IO/t/io_poll............FAILED tests 3-4
../ext/IPC/SysV/ipcsysv...............FAILED tests 2, 5-6
../ext/IPC/SysV/t/msg.................FAILED tests 2, 4-6
../ext/Socket/socketpair..............FAILED tests 12
../lib/IPC/SysV.......................FAILED tests 2, 5-6
../lib/warnings.......................FAILED tests 115-116, 118-119</code></pre>

<p>The op/pack failure (&quot;Cannot compress negative numbers at op/pack.t line 126&quot;) is serious but as of yet unsolved. It points at some problems with the signedness handling of the C compiler, as do the 64bitint, arith, and pow failures. Most of the rest point at problems with SysV IPC.</p>

<h2 id="Term::ReadKey-not-working-on-Win32"><a class="permalink" href="perl58delta.html#Term::ReadKey-not-working-on-Win32">#</a><a id="Term"></a>Term::ReadKey not working on Win32</h2>

<p>Use Term::ReadKey 2.20 or later.</p>

<h2 id="UNICOS/mk"><a class="permalink" href="perl58delta.html#UNICOS/mk">#</a><a id="UNICOS"></a><a id="UNICOS-mk"></a>UNICOS/mk</h2>

<ul>

<li><p>During Configure, the test</p>

<pre><code class="plaintext">Guessing which symbols your C compiler and preprocessor define...</code></pre>

<p>will probably fail with error messages like</p>

<pre><code class="plaintext">CC-20 cc: ERROR File = try.c, Line = 3
  The identifier &quot;bad&quot; is undefined.

  bad switch yylook 79bad switch yylook 79bad switch yylook 79bad switch yylook 79#ifdef A29K
  ^

CC-65 cc: ERROR File = try.c, Line = 3
  A semicolon is expected at this point.</code></pre>

<p>This is caused by a bug in the awk utility of UNICOS/mk. You can ignore the error, but it does cause a slight problem: you cannot fully benefit from the h2ph utility (see <a href="h2ph.html">h2ph</a>) that can be used to convert C headers to Perl libraries, mainly used to be able to access from Perl the constants defined using C preprocessor, cpp. Because of the above error, parts of the converted headers will be invisible. Luckily, these days the need for h2ph is rare.</p>

</li>
<li><p>If building Perl with interpreter threads (ithreads), the getgrent(), getgrnam(), and getgrgid() functions cannot return the list of the group members due to a bug in the multithreaded support of UNICOS/mk. What this means is that in list context the functions will return only three values, not four.</p>

</li>
</ul>

<h2 id="UTS"><a class="permalink" href="perl58delta.html#UTS">#</a>UTS</h2>

<p>There are a few known test failures. (<b>Note:</b> the relevant information was available in <i>README.uts</i> until support for UTS was removed in Perl v5.18.0)</p>

<h2 id="VOS-(Stratus)"><a class="permalink" href="perl58delta.html#VOS-(Stratus)">#</a><a id="VOS"></a><a id="VOS-Stratus"></a>VOS (Stratus)</h2>

<p>When Perl is built using the native build process on VOS Release 14.5.0 and GNU C++/GNU Tools 2.0.1, all attempted tests either pass or result in TODO (ignored) failures.</p>

<h2 id="VMS"><a class="permalink" href="perl58delta.html#VMS">#</a>VMS</h2>

<p>There should be no reported test failures with a default configuration, though there are a number of tests marked TODO that point to areas needing further debugging and/or porting work.</p>

<h2 id="Win32"><a class="permalink" href="perl58delta.html#Win32">#</a>Win32</h2>

<p>In multi-CPU boxes, there are some problems with the I/O buffering: some output may appear twice.</p>

<h2 id="XML::Parser-not-working"><a class="permalink" href="perl58delta.html#XML::Parser-not-working">#</a><a id="XML"></a>XML::Parser not working</h2>

<p>Use XML::Parser 2.31 or later.</p>

<h2 id="z/OS-(OS/390)"><a class="permalink" href="perl58delta.html#z/OS-(OS/390)">#</a><a id="z"></a><a id="z-OS-OS-390"></a>z/OS (OS/390)</h2>

<p>z/OS has rather many test failures but the situation is actually much better than it was in 5.6.0; it&#39;s just that so many new modules and tests have been added.</p>

<pre><code class="plaintext">Failed Test                   Stat Wstat Total Fail  Failed  List of Failed
---------------------------------------------------------------------------
../ext/Data/Dumper/t/dumper.t              357    8   2.24%  311 314 325 327
                                                             331 333 337 339
../ext/IO/lib/IO/t/io_unix.t                 5    4  80.00%  2-5
../ext/Storable/t/downgrade.t   12  3072   169   12   7.10%  14-15 46-47 78-79
                                                             110-111 150 161
../lib/ExtUtils/t/Constant.t   121 30976    48   48 100.00%  1-48
../lib/ExtUtils/t/Embed.t                    9    9 100.00%  1-9
op/pat.t                                   922    7   0.76%  665 776 785 832-
                                                             834 845
op/sprintf.t                               224    3   1.34%  98 100 136
op/tr.t                                     97    5   5.15%  63 71-74
uni/fold.t                                 780    6   0.77%  61 169 196 661
                                                             710-711</code></pre>

<p>The failures in dumper.t and downgrade.t are problems in the tests, those in io_unix and sprintf are problems in the USS (UDP sockets and printf formats). The pat, tr, and fold failures are genuine Perl problems caused by EBCDIC (and in the pat and fold cases, combining that with Unicode). The Constant and Embed are probably problems in the tests (since they test Perl&#39;s ability to build extensions, and that seems to be working reasonably well.)</p>

<h2 id="Unicode-Support-on-EBCDIC-Still-Spotty"><a class="permalink" href="perl58delta.html#Unicode-Support-on-EBCDIC-Still-Spotty">#</a><a id="Unicode2"></a>Unicode Support on EBCDIC Still Spotty</h2>

<p>Though mostly working, Unicode support still has problem spots on EBCDIC platforms. One such known spot are the <code>\p{}</code> and <code>\P{}</code> regular expression constructs for code points less than 256: the <code>pP</code> are testing for Unicode code points, not knowing about EBCDIC.</p>

<h2 id="Seen-In-Perl-5.7-But-Gone-Now"><a class="permalink" href="perl58delta.html#Seen-In-Perl-5.7-But-Gone-Now">#</a><a id="Seen"></a>Seen In Perl 5.7 But Gone Now</h2>

<p><code>Time::Piece</code> (previously known as <code>Time::Object</code>) was removed because it was felt that it didn&#39;t have enough value in it to be a core module. It is still a useful module, though, and is available from the CPAN.</p>

<p>Perl 5.8 unfortunately does not build anymore on AmigaOS; this broke accidentally at some point. Since there are not that many Amiga developers available, we could not get this fixed and tested in time for 5.8.0. Perl 5.6.1 still works for AmigaOS (as does the 5.7.2 development release).</p>

<p>The <code>PerlIO::Scalar</code> and <code>PerlIO::Via</code> (capitalised) were renamed as <code>PerlIO::scalar</code> and <code>PerlIO::via</code> (all lowercase) just before 5.8.0. The main rationale was to have all core PerlIO layers to have all lowercase names. The &quot;plugins&quot; are named as usual, for example <code>PerlIO::via::QuotedPrint</code>.</p>

<p>The <code>threads::shared::queue</code> and <code>threads::shared::semaphore</code> were renamed as <code>Thread::Queue</code> and <code>Thread::Semaphore</code> just before 5.8.0. The main rationale was to have thread modules to obey normal naming, <code>Thread::</code> (the <code>threads</code> and <code>threads::shared</code> themselves are more pragma-like, they affect compile-time, so they stay lowercase).</p>

<h1 id="Reporting-Bugs"><a class="permalink" href="perl58delta.html#Reporting-Bugs">#</a><a id="Reporting"></a>Reporting Bugs</h1>

<p>If you find what you think is a bug, you might check the articles recently posted to the comp.lang.perl.misc newsgroup and the perl bug database at http://bugs.perl.org/ . There may also be information at http://www.perl.com/ , the Perl Home Page.</p>

<p>If you believe you have an unreported bug, please run the <b>perlbug</b> program included with your release. Be sure to trim your bug down to a tiny but sufficient test case. Your bug report, along with the output of <code>perl -V</code>, will be sent off to perlbug@perl.org to be analysed by the Perl porting team.</p>

<h1 id="SEE-ALSO"><a class="permalink" href="perl58delta.html#SEE-ALSO">#</a><a id="SEE"></a>SEE ALSO</h1>

<p>The <i>Changes</i> file for exhaustive details on what changed.</p>

<p>The <i>INSTALL</i> file for how to build Perl.</p>

<p>The <i>README</i> file for general stuff.</p>

<p>The <i>Artistic</i> and <i>Copying</i> files for copyright information.</p>

<h1 id="HISTORY"><a class="permalink" href="perl58delta.html#HISTORY">#</a>HISTORY</h1>

<p>Written by Jarkko Hietaniemi &lt;<i>jhi@iki.fi</i>&gt;.</p>


      </div>
      <div id="footer">
        <p>Perldoc Browser is maintained by Dan Book (<a href="https://metacpan.org/author/DBOOK">DBOOK</a>). Please contact him via the <a href="https://github.com/Grinnz/perldoc-browser/issues">GitHub issue tracker</a> or <a href="mailto:dbook@cpan.org">email</a> regarding any issues with the site itself, search, or rendering of documentation.</p>

<p>The Perl documentation is maintained by the Perl 5 Porters in the development of Perl. Please contact them via the <a href="https://github.com/Perl/perl5/issues">Perl issue tracker</a>, the <a href="https://lists.perl.org/list/perl5-porters.html">mailing list</a>, or <a href="https://kiwiirc.com/client/irc.perl.org/p5p">IRC</a> to report any issues with the contents or format of the documentation.</p>


      </div>
    </div>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.slim.min.js" integrity="sha512-/DXTXr6nQodMUiq+IUJYCt2PPOUjrHJ9wFrqpJ3XkgPNOZVfMok7cRw6CSxyCQxXn6ozlESsSh1/sMCTF1rL/g==" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.1/umd/popper.min.js" integrity="sha512-ubuT8Z88WxezgSqf3RLuNi5lmjstiJcyezx34yIU2gAHonIi27Na7atqzUZCOoY4CExaoFumzOsFQ2Ch+I/HCw==" crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
    <script src="../highlight.pack.js"></script>
    <script>hljs.highlightAll();</script>
  </body>
</html>
